windowed
v0.1.0
Published
A sliding window of a given size over the input
Downloads
3
Readme
node-windowed
A sliding window of a given size over the input
Installation
npm install windowed
Usage
var windowed = require('windowed');
var foo = windowed(3, [0, 1, 2, 3, 4]);
console.log(foo); // [[0, 1, 2], [1, 2, 3], [2, 3, 4]]
License
The MIT License. See LICENSE.