Buffers the source elements into arrays of 'size' elements.
Type of the elements.
The number of elements in each buffer.
Operation that buffers the source elements.
const result = buffer(3)([1, 2, 3, 4, 5, 6]);console.log([...result]); // [[1, 2, 3], [4, 5, 6]] Copy
const result = buffer(3)([1, 2, 3, 4, 5, 6]);console.log([...result]); // [[1, 2, 3], [4, 5, 6]]
Buffers the source elements into arrays of 'size' elements.