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

Function areAllElementsInArrayDefined

src/helpers/helpers.ts:22–23  ·  view source on GitHub ↗
(collection: T[])

Source from the content-addressed store, hash-verified

20export const isUndefinedOrNull = (v: any) => v === void 0 || v === null;
21
22export const areAllElementsInArrayDefined = <T>(collection: T[]) =>
23 arrayContainsEntries(collection) && collection.every((element) => element);
24
25export const isPromise = <T>(value: any): value is Promise<T> =>
26 value instanceof Promise;

Callers 1

helpers.spec.tsFile · 0.90

Calls 1

arrayContainsEntriesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…