MCPcopy Create free account
hub / github.com/cn-docs/vueuse / defaultComparator

Function defaultComparator

packages/shared/useArrayDifference/index.ts:14–16  ·  view source on GitHub ↗
(value: T, othVal: T)

Source from the content-addressed store, hash-verified

12}
13
14function defaultComparator<T>(value: T, othVal: T) {
15 return value === othVal
16}
17
18export function useArrayDifference<T>(
19 list: MaybeRefOrGetter<T[]>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected