Home / Function/ _interopRequireWildcard() — react Function Reference

_interopRequireWildcard() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  920227bb_9a88_0ec7_6956_f696467aa406["_interopRequireWildcard()"]
  36de993f_e551_1e74_f1ca_ebd41e6cd9db["index.js"]
  920227bb_9a88_0ec7_6956_f696467aa406 -->|defined in| 36de993f_e551_1e74_f1ca_ebd41e6cd9db
  884bd529_a760_5a86_e6a5_ef9ccdae7bba["_getRequireWildcardCache()"]
  920227bb_9a88_0ec7_6956_f696467aa406 -->|calls| 884bd529_a760_5a86_e6a5_ef9ccdae7bba
  style 920227bb_9a88_0ec7_6956_f696467aa406 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external/index-map/index.js lines 88–88

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/index-map/index.js.
Where is _interopRequireWildcard() defined?
_interopRequireWildcard() is defined in packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external/index-map/index.js at line 88.
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