MCPcopy Index your code
hub / github.com/pmndrs/react-spring / findRange

Function findRange

packages/shared/src/createInterpolator.ts:95–100  ·  view source on GitHub ↗
(input: number, inputRange: readonly number[])

Source from the content-addressed store, hash-verified

93}
94
95function findRange(input: number, inputRange: readonly number[]) {
96 // eslint-disable-next-line no-var
97 for (var i = 1; i < inputRange.length - 1; ++i)
98 if (inputRange[i] >= input) break
99 return i - 1
100}

Callers 1

createInterpolatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…