UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

11 lines (10 loc) 352 B
/** * Counts the number of non-null elements in an array. * @param data - An array of any type * @returns The count of elements that are neither null nor undefined * @example * count([1, null, 'a', undefined]) // Returns 2 * count([]) // Returns 0 * count([null, undefined]) // Returns 0 */ export declare function count(d: unknown[]): number;