makeMap() — vue Function Reference
Architecture documentation for the makeMap() function in util.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 78983549_ba6c_49dd_a3c1_287e1b4a7ea9["makeMap()"] ce303fd5_0a15_37d7_872a_d1ca73ec7f6a["util.ts"] 78983549_ba6c_49dd_a3c1_287e1b4a7ea9 -->|defined in| ce303fd5_0a15_37d7_872a_d1ca73ec7f6a style 78983549_ba6c_49dd_a3c1_287e1b4a7ea9 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