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

11.13.0 • Public • Published

@unction/initial

Tests Stability Dependencies

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"

Readme

Keywords

Package Sidebar

Install

npm i @unction/initial

Weekly Downloads

22

Version

11.13.0

License

SEE LICENSE IN LICENSE

Unpacked Size

15.8 kB

Total Files

8

Last publish

Collaborators

  • krainboltgreene