Returns an OperationFunction that buffers the source elements into arrays of 'size' elements.
Type of the elements.
The number of elements in each buffer.
An OperationFunction that buffers the source elements into arrays of 'size' 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]]
Returns an OperationFunction that buffers the source elements into arrays of 'size' elements.