array-rest

Gets all but the first element, or n elements in the given array.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
array-rest
300.1.19 years ago9 years agoMinified + gzip package size for array-rest in KB

Readme

array-rest NPM version
Gets all but the first element, or n elements in the given array.

Install with npm

npm i array-rest --save

Run tests

npm test

Usage

var rest = require('array-rest');

rest(['a', 'b', 'c', 'd', 'e', 'f']);
//=> ['b', 'c', 'd', 'e', 'f']

rest(['a', 'b', 'c', 'd', 'e', 'f'], 3);
//=> ['d', 'e', 'f']

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license

This file was generated by verb
on December 12, 2014. To update, run npm i -g verb && verb.