Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndhoule/rest
Produce a new array composed of all but the first element of the input collection.
https://github.com/ndhoule/rest
Last synced: 13 days ago
JSON representation
Produce a new array composed of all but the first element of the input collection.
- Host: GitHub
- URL: https://github.com/ndhoule/rest
- Owner: ndhoule
- License: mit
- Created: 2015-07-09T00:19:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-29T23:00:25.000Z (over 8 years ago)
- Last Synced: 2024-10-27T03:21:05.354Z (23 days ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# rest [![CI][ci-badge]][ci-link]
Produce a new array composed of all but the first element of the input `collection`.
## Installation
```sh
$ 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`.
```javascript
rest([1, 2, 3]); // => [2, 3]
```## License
Released under the [MIT license](LICENSE.md).
[ci-link]: https://travis-ci.org/ndhoule/rest
[ci-badge]: https://travis-ci.org/ndhoule/rest.svg?branch=master