array-first
Get the first element or first n elements of an array.
(TOC generated by verb using markdown-toc)
Usage
var first = ; ;//=> 'a' ;//=> 'a' ;//=> ['a', 'b', 'c']
Related projects
array-last: Get the last or last n elements in an array. | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb on January 12, 2016.