@unction/dropfirst
v8.13.0
Published
Returns all but the first N of a list of ordered values
Downloads
99
Readme
@unction/dropFirst
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"