UNPKG

pure-fun

Version:

A collection of pure functions/helpers with 0 dependencies

8 lines (7 loc) 275 B
declare type TruthyValues = object | string | number | true; /** * Returns an array with only truthy values. * Considered falsy values: false, undefined, null, 0, NaN, '' */ declare const filterFalsies: (arr: any[]) => TruthyValues[]; export default filterFalsies;