Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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