@ndhoule/rest
v2.0.0
Published
Produce a new array composed of all but the first element of the input collection.
Downloads
99,931
Readme
rest
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.