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

8.14.0 • Public • Published

@unction/takeFirst

Tests Stability Dependencies

number => Array | string => Array | string

Returns the first N of a list of ordered values.

takeFirst(2)([1, 2, 3]) // [1, 2]
takeFirst(1)([1, 2, 3]) // [1]
takeFirst(2)("abc") // "ab"
takeFirst(1)("abc") // "a"

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
8.14.01latest

Version History

VersionDownloads (Last 7 Days)Published
8.14.01
8.13.01
8.12.01
8.11.11
8.11.01
8.10.11
8.10.01
8.9.01
8.8.11
8.8.01
8.7.01
8.6.11
8.6.01
8.5.01
8.4.01
8.3.11
8.3.01
8.2.01
8.1.01
8.0.01
7.0.01
6.0.01
5.0.01
4.0.01
3.0.01
2.0.01
1.46.01
1.45.01
1.44.01
1.43.01
1.42.01
1.41.01
1.40.01
1.39.01
1.38.01
1.37.01
1.36.01
1.35.01
1.34.01
1.33.01
1.32.01
1.31.01
1.30.01
1.29.01
1.28.01
1.27.01
1.26.01
1.25.01
1.24.01
1.23.01
1.22.01
1.21.01
1.20.01
1.19.01
1.18.01
1.17.01
1.16.01
1.15.01
1.14.01
1.13.01
1.12.01
1.11.01
1.10.01
1.9.01
1.8.01
1.7.01
1.6.01
1.4.01
1.2.01
1.1.11
1.1.01
1.0.01

Package Sidebar

Install

npm i @unction/takefirst

Weekly Downloads

72

Version

8.14.0

License

SEE LICENSE IN LICENSE

Unpacked Size

19 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene