@unction/initial
v11.13.0
Published
Returns all but the last item in an ordered list
Downloads
37
Readme
@unction/initial
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 last item in an ordered list.
initial([1, 2, 3]) // [1, 2]
initial("abc") // "ab"