ran npm run tdd & generated TDD
This commit is contained in:
4
test/chunk/chunk.js
Normal file
4
test/chunk/chunk.js
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = (arr, size) =>
|
||||
Array.from({ length: Math.ceil(arr.length / size) }, (v, i) =>
|
||||
arr.slice(i * size, i * size + size)
|
||||
);
|
||||
Reference in New Issue
Block a user