MCPcopy
hub / github.com/pmndrs/react-spring / isEqual

Function isEqual

packages/shared/src/helpers.ts:25–34  ·  view source on GitHub ↗
(a: any, b: any)

Source from the content-addressed store, hash-verified

23
24/** Compare animatable values */
25export function isEqual(a: any, b: any) {
26 if (is.arr(a)) {
27 if (!is.arr(b) || a.length !== b.length) return false
28 for (let i = 0; i < a.length; i++) {
29 if (a[i] !== b[i]) return false
30 }
31 return true
32 }
33 return a === b
34}
35
36type EachFn<Value, Key, This> = (this: This, value: Value, key: Key) => void
37type Eachable<Value = any, Key = any, This = any> = {

Callers 5

setup.tsFile · 0.90
advanceMethod · 0.90
_mergeMethod · 0.90
_setMethod · 0.90
checkFinishedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…