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

10.13.0 • Public • Published

@unction/length

Tests Stability Dependencies

Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => number

Returns the number of values contained in the enumerable.

length([1, 2, 3]) // 3
length({aaa: "aaa", bbb: "bbb"}) // 2
length(new Map([["aaa", "aaa"], ["bbb", "bbb"]])) // 2
length(new Set([1, 2, 3])) // 3

Readme

Keywords

Package Sidebar

Install

npm i @unction/length

Weekly Downloads

79

Version

10.13.0

License

SEE LICENSE IN LICENSE

Unpacked Size

14.8 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene