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

Function arrayContainsEntries

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

Source from the content-addressed store, hash-verified

9 Array.isArray(collection) ? collection.length : 0;
10
11export const arrayContainsEntries = <T>(collection: T[]) =>
12 safeArrayLength(collection) > 0;
13
14// https://stackoverflow.com/questions/5999998/check-if-a-variable-is-of-function-type
15export const isFunction = (v: any): v is Function => typeof v === 'function';

Callers 6

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…