makeMap() — vue Function Reference
Architecture documentation for the makeMap() function in util.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD dcb237d8_13a5_6dbc_98b0_90bd1707bda9["makeMap()"] fc84049c_ab61_f37e_06ee_ece430eba062["genStaticKeys()"] fc84049c_ab61_f37e_06ee_ece430eba062 -->|calls| dcb237d8_13a5_6dbc_98b0_90bd1707bda9 style dcb237d8_13a5_6dbc_98b0_90bd1707bda9 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]
}
Domain
Subdomains
Called By
Source
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