Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/himanoa/eachslice

eachSlice([1,2,3], 2) -> [[1,2],[3]]
https://github.com/himanoa/eachslice

Last synced: 20 days ago
JSON representation

eachSlice([1,2,3], 2) -> [[1,2],[3]]

Awesome Lists containing this project

README

        

# eachslice

Prototype does not pollute each slice implementation

## How to use

```javascript
const eachSlice = require('eachslice');

eachSlice([1,2,3], 2) // -> [[1,2], [3]]
```

## License

MIT