MCPcopy
hub / github.com/vuejs/core / hasChanged

Function hasChanged

packages/shared/src/general.ts:143–144  ·  view source on GitHub ↗
(value: any, oldValue: any)

Source from the content-addressed store, hash-verified

141
142// compare whether a value has changed, accounting for NaN.
143export const hasChanged = (value: any, oldValue: any): boolean =>
144 !Object.is(value, oldValue)
145
146export const invokeArrayFns = (fns: Function[], ...arg: any[]): void => {
147 for (let i = 0; i < fns.length; i++) {

Callers 11

valueMethod · 0.90
refreshComputedFunction · 0.90
jobFunction · 0.90
getFunction · 0.90
hasFunction · 0.90
addFunction · 0.90
setFunction · 0.90
setMethod · 0.90
isMemoSameFunction · 0.90
useModelFunction · 0.90
setFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected