@unction/first

Returns the first item of an ordered list


Keywords
unction, functional
License
ISC
Install
npm install @unction/first@3.1.3

Documentation

@unction/first

Tests Stability Dependencies

OrderedEnumerableType => A | string | void

Returns the first item of an ordered list.

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