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

Function callProp

packages/core/src/helpers.ts:24–26  ·  view source on GitHub ↗
(value: unknown, ...args: unknown[])

Source from the content-addressed store, hash-verified

22 ...args: T extends AnyFn ? Parameters<T> : unknown[]
23): T extends AnyFn<any, infer U> ? U : T
24export function callProp(value: unknown, ...args: unknown[]) {
25 return is.fun(value) ? value(...args) : value
26}
27
28/** Try to coerce the given value into a boolean using the given key */
29export const matchProp = (

Callers 6

schedulePropsFunction · 0.90
_mergeMethod · 0.90
_onChangeMethod · 0.90
createLoopUpdateFunction · 0.90
useTransitionFunction · 0.90
useChainFunction · 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…