• Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are falsey.

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 113 bytes
    • Micro-dash: 62 bytes

    Type Parameters

    • T

    Parameters

    • array: readonly T[]

    Returns Exclude<T, Falsy>[]