@extra-array/first

1.1.7 • Public • Published

Get first value of array.

const first = require('@extra-array/first');
// first(<array>, [index=0])

first(['g', 'a', 'r', 'f', 'i', 'e', 'l', 'd']);
// 'g'
first(['o', 'd', 'i', 'e'], 2);
// 'i'

With extra-array try Array.first() instead.


extra-array

Package Sidebar

Install

npm i @extra-array/first

Weekly Downloads

0

Version

1.1.7

License

MIT

Unpacked Size

2.29 kB

Total Files

4

Last publish

Collaborators

  • wolfram77