Adds eachSlice to js Array.
npm i array-each-slice
import 'array-each-slice';
[1,2,3,4].eachSlice(2) // [[1,2], [3,4]]
[1,2,3,4].forEachSlice(2, callback, thisArg) // Equals [1,2,3,4].eachSlice(2).forEach(callback, thisArg)
Adds eachSlice to js Array.
Adds eachSlice to js Array.
npm i array-each-slice
import 'array-each-slice';
[1,2,3,4].eachSlice(2) // [[1,2], [3,4]]
[1,2,3,4].forEachSlice(2, callback, thisArg) // Equals [1,2,3,4].eachSlice(2).forEach(callback, thisArg)
Adds eachSlice to js Array.
MIT License