Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndhoule/drop
Produce a new array composed of all but the first n elements of an input collection.
https://github.com/ndhoule/drop
Last synced: 13 days ago
JSON representation
Produce a new array composed of all but the first n elements of an input collection.
- Host: GitHub
- URL: https://github.com/ndhoule/drop
- Owner: ndhoule
- License: mit
- Created: 2015-07-15T07:20:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-29T23:05:10.000Z (over 8 years ago)
- Last Synced: 2024-08-09T21:50:24.211Z (3 months ago)
- Language: JavaScript
- Size: 5.86 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
# drop [![CI][ci-badge]][ci-link]
Produce a new array composed of all but the first `n` elements of an input `collection`.
## Installation
```sh
$ component install ndhoule/drop
$ npm install @ndhoule/drop
```## API
### `drop(count : number, collection : Array) => Array`
Produce a new array composed of all but the first `n` elements of an input `collection`.
```javascript
drop([1, 2, 3]); // => [2, 3]
```## License
Released under the [MIT license](LICENSE.md).
[ci-link]: https://travis-ci.org/ndhoule/drop
[ci-badge]: https://travis-ci.org/ndhoule/drop.svg?branch=master