Home / Function/ hasChanged() — vue Function Reference

hasChanged() — vue Function Reference

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

Entity Profile

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

Analyze Your Own Codebase

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

Try Supermodel Free