hasChanged() — vue Function Reference
Architecture documentation for the hasChanged() function in util.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 834c0087_2993_35db_a7f5_51e9c772356e["hasChanged()"] b7977953_caa1_d867_207c_74cfbf6421e0["util.ts"] 834c0087_2993_35db_a7f5_51e9c772356e -->|defined in| b7977953_caa1_d867_207c_74cfbf6421e0 style 834c0087_2993_35db_a7f5_51e9c772356e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/shared/util.ts lines 372–378
export function hasChanged(x: unknown, y: unknown): boolean {
if (x === y) {
return x === 0 && 1 / x !== 1 / (y as number)
} else {
return x === x || y === y
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does hasChanged() do?
hasChanged() is a function in the vue codebase, defined in src/shared/util.ts.
Where is hasChanged() defined?
hasChanged() is defined in src/shared/util.ts at line 372.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free