@unction/ispopulated
TypeScript icon, indicating that this package has built-in type declarations

14.13.0 • Public • Published

@unction/isPopulated

Tests Stability Dependencies

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

Readme

Keywords

Package Sidebar

Install

npm i @unction/ispopulated

Weekly Downloads

125

Version

14.13.0

License

SEE LICENSE IN LICENSE

Unpacked Size

15.5 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene