Home / Function/ makeMap() — vue Function Reference

makeMap() — vue Function Reference

Architecture documentation for the makeMap() function in util.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  f9a69e26_d8fe_3dc0_ec5f_33ab5873348f["makeMap()"]
  62e82099_6770_e50d_0f2f_c11ed6ca7992["genStaticKeys()"]
  62e82099_6770_e50d_0f2f_c11ed6ca7992 -->|calls| f9a69e26_d8fe_3dc0_ec5f_33ab5873348f
  style f9a69e26_d8fe_3dc0_ec5f_33ab5873348f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/shared/util.ts lines 118–128

export function makeMap(
  str: string,
  expectsLowerCase?: boolean
): (key: string) => true | undefined {
  const map = Object.create(null)
  const list: Array<string> = str.split(',')
  for (let i = 0; i < list.length; i++) {
    map[list[i]] = true
  }
  return expectsLowerCase ? val => map[val.toLowerCase()] : val => map[val]
}

Subdomains

Called By

Frequently Asked Questions

What does makeMap() do?
makeMap() is a function in the vue codebase.
What calls makeMap()?
makeMap() is called by 1 function(s): genStaticKeys.

Analyze Your Own Codebase

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

Try Supermodel Free