@ndhoule/rest

Produce a new array composed of all but the first element of the input collection.

Stats

StarsIssuesVersionUpdatedCreatedSize
@ndhoule/rest
002.0.05 years ago6 years agoMinified + gzip package size for @ndhoule/rest in KB

Readme

rest CI

Produce a new array composed of all but the first element of the input collection.

Installation

$ component install ndhoule/rest
$ npm install @ndhoule/rest

API

rest(collection : Array) => Array

Produce a new array composed of all but the first element of the input collection.

rest([1, 2, 3]); // => [2, 3]

License

Released under the MIT license.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.