@unction/ispopulated
v14.13.0
Published
Determines if a list has any non-nil values
Downloads
107
Readme
@unction/isPopulated
Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => boolean
Allows you to check if a enumerable has any items.
isPopulated([1]) // true
isPopulated({a: 'b'}) // true
isPopulated({}) // false
isPopulated([]) // false
isPopulated("") // false
isPopulated("a") // true