Home / Function/ platform.get() — react Function Reference

platform.get() — react Function Reference

Architecture documentation for the platform.get() function in domEnvironment.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  b53ad7cf_0f4d_0d24_ae18_f6c928b2c1a7["platform.get()"]
  c03693b0_2482_9a7d_a058_7ba891e5839d["domEnvironment.js"]
  b53ad7cf_0f4d_0d24_ae18_f6c928b2c1a7 -->|defined in| c03693b0_2482_9a7d_a058_7ba891e5839d
  style b53ad7cf_0f4d_0d24_ae18_f6c928b2c1a7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/dom-event-testing-library/domEnvironment.js lines 49–51

  get() {
    return global.navigator.platform === 'MacIntel' ? 'mac' : 'windows';
  },

Domain

Subdomains

Frequently Asked Questions

What does platform.get() do?
platform.get() is a function in the react codebase, defined in packages/dom-event-testing-library/domEnvironment.js.
Where is platform.get() defined?
platform.get() is defined in packages/dom-event-testing-library/domEnvironment.js at line 49.

Analyze Your Own Codebase

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

Try Supermodel Free