MCPcopy Create free account
hub / github.com/Lemoncode/fonk / isLastIndexInArray

Function isLastIndexInArray

src/helpers/helpers.ts:17–18  ·  view source on GitHub ↗
(index: number, array: T[])

Source from the content-addressed store, hash-verified

15export const isFunction = (v: any): v is Function => typeof v === 'function';
16
17export const isLastIndexInArray = <T>(index: number, array: T[]) =>
18 index === safeArrayLength(array) - 1;
19
20export const isUndefinedOrNull = (v: any) => v === void 0 || v === null;
21

Callers 1

helpers.spec.tsFile · 0.90

Calls 1

safeArrayLengthFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…