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

Function toArray

packages/shared/src/helpers.ts:70–71  ·  view source on GitHub ↗
(a: T)

Source from the content-addressed store, hash-verified

68}
69
70export const toArray = <T>(a: T): Arrify<Exclude<T, void>> =>
71 (is.und(a) ? [] : is.arr(a) ? a : [a]) as Arrify<Exclude<T, void>>
72
73/** Copy the `queue`, then iterate it after the `queue` is cleared */
74export function flush<P, T>(

Callers 15

startMethod · 0.90
stopMethod · 0.90
pauseMethod · 0.90
resumeMethod · 0.90
getSpringsFunction · 0.90
_getMethod · 0.90
_attachMethod · 0.90
_detachMethod · 0.90
eventObservedMethod · 0.90
matchPropFunction · 0.90
advanceMethod · 0.90
_mergeMethod · 0.90

Calls

no outgoing calls

Tested by 1

ComponentFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…