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

8.13.0 • Public • Published

@unction/dropFirst

Tests Stability Dependencies

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

Returns all but the first N of a list of ordered values.

dropFirst(2)([1, 2, 3]) // [3]
dropFirst(1)([1, 2, 3]) // [2, 3]
dropFirst(2)("abc") // "c"
dropFirst(1)("abc") // "bc"

Readme

Keywords

Package Sidebar

Install

npm i @unction/dropfirst

Weekly Downloads

2

Version

8.13.0

License

SEE LICENSE IN LICENSE

Unpacked Size

20.1 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene