Home / Function/ hasHandler.has() — vue Function Reference

hasHandler.has() — vue Function Reference

Architecture documentation for the hasHandler.has() function in proxy.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  b0eefea3_bce3_cbac_335d_8115647b5a8c["hasHandler.has()"]
  c0fd89ae_002f_faad_caf8_47b498cb525f["warnReservedPrefix()"]
  b0eefea3_bce3_cbac_335d_8115647b5a8c -->|calls| c0fd89ae_002f_faad_caf8_47b498cb525f
  12a980e7_3b97_d3da_9003_c1ebb12c9f2d["warnNonPresent()"]
  b0eefea3_bce3_cbac_335d_8115647b5a8c -->|calls| 12a980e7_3b97_d3da_9003_c1ebb12c9f2d
  style b0eefea3_bce3_cbac_335d_8115647b5a8c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/instance/proxy.ts lines 59–71

    has(target, key) {
      const has = key in target
      const isAllowed =
        allowedGlobals(key) ||
        (typeof key === 'string' &&
          key.charAt(0) === '_' &&
          !(key in target.$data))
      if (!has && !isAllowed) {
        if (key in target.$data) warnReservedPrefix(target, key)
        else warnNonPresent(target, key)
      }
      return has || !isAllowed
    }

Domain

Subdomains

Frequently Asked Questions

What does hasHandler.has() do?
hasHandler.has() is a function in the vue codebase.
What does hasHandler.has() call?
hasHandler.has() calls 2 function(s): warnNonPresent, warnReservedPrefix.

Analyze Your Own Codebase

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

Try Supermodel Free