Home / Function/ _interopRequireWildcard() — react Function Reference

_interopRequireWildcard() — react Function Reference

Architecture documentation for the _interopRequireWildcard() function in ComponentWithCustomHook.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  9fc2dd4f_007d_51a0_fcfe_c7124005c38c["_interopRequireWildcard()"]
  0bd75c7d_a4a1_5f5c_0e77_48c8906537a9["ComponentWithCustomHook.js"]
  9fc2dd4f_007d_51a0_fcfe_c7124005c38c -->|defined in| 0bd75c7d_a4a1_5f5c_0e77_48c8906537a9
  76a3ad7a_d95a_a314_c076_235299e3b348["_getRequireWildcardCache()"]
  9fc2dd4f_007d_51a0_fcfe_c7124005c38c -->|calls| 76a3ad7a_d95a_a314_c076_235299e3b348
  style 9fc2dd4f_007d_51a0_fcfe_c7124005c38c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external/fb-sources-extended/index-map/ComponentWithCustomHook.js lines 14–14

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

Domain

Subdomains

Frequently Asked Questions

What does _interopRequireWildcard() do?
_interopRequireWildcard() is a function in the react codebase, defined in packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external/fb-sources-extended/index-map/ComponentWithCustomHook.js.
Where is _interopRequireWildcard() defined?
_interopRequireWildcard() is defined in packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external/fb-sources-extended/index-map/ComponentWithCustomHook.js at line 14.
What does _interopRequireWildcard() call?
_interopRequireWildcard() calls 1 function(s): _getRequireWildcardCache.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free