makeMap() — vue Function Reference
Architecture documentation for the makeMap() function in util.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 2556c0bf_6dd7_8492_3553_795a00780ffb["makeMap()"] b7977953_caa1_d867_207c_74cfbf6421e0["util.ts"] 2556c0bf_6dd7_8492_3553_795a00780ffb -->|defined in| b7977953_caa1_d867_207c_74cfbf6421e0 style 2556c0bf_6dd7_8492_3553_795a00780ffb 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
Defined In
Source
Frequently Asked Questions
What does makeMap() do?
makeMap() is a function in the vue codebase, defined in src/shared/util.ts.
Where is makeMap() defined?
makeMap() is defined in src/shared/util.ts at line 118.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free