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
  2f11d03d_deec_1b26_2da6_057b69b521ea["hasHandler.has()"]
  581d7f4f_49fe_9174_eacc_5863a2fab073["proxy.ts"]
  2f11d03d_deec_1b26_2da6_057b69b521ea -->|defined in| 581d7f4f_49fe_9174_eacc_5863a2fab073
  eacbfa0c_2c58_c140_47c2_da2c64d54365["warnReservedPrefix()"]
  2f11d03d_deec_1b26_2da6_057b69b521ea -->|calls| eacbfa0c_2c58_c140_47c2_da2c64d54365
  225b159e_429a_ea37_26f6_13b9e4bf4593["warnNonPresent()"]
  2f11d03d_deec_1b26_2da6_057b69b521ea -->|calls| 225b159e_429a_ea37_26f6_13b9e4bf4593
  style 2f11d03d_deec_1b26_2da6_057b69b521ea 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, defined in src/core/instance/proxy.ts.
Where is hasHandler.has() defined?
hasHandler.has() is defined in src/core/instance/proxy.ts at line 59.
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