MCPcopy Create free account
hub / github.com/activejs/activejs / isValidIndex

Function isValidIndex

packages/core/src/utils/funcs.ts:46–50  ·  view source on GitHub ↗
(i: any)

Source from the content-addressed store, hash-verified

44 * @internal please do not use.
45 */
46export function isValidIndex(i: any): i is number | string {
47 const a = [];
48 a[i] = 1;
49 return !!a.length && a[i] === 1;
50}
51
52/**
53 * @internal please do not use.

Callers 5

setMethod · 0.90
list-unit.spec.tsFile · 0.90
sanitizeIndicesFunction · 0.85
findIndexFunction · 0.85
findIndexBackwardsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected