Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

bufferWithCount

import { bufferWithCount } from "https://raw.githubusercontent.com/surma/observables-with-streams/28c55be6d855780c677fd1f4ba975f4d3144891d/src/index.ts";

Collects items from the original observable into buffers of size count.

function bufferWithCount<T>(count: number): Transform<T, T[]>;
§
bufferWithCount<T>(count: number): Transform<T, T[]>
[src]

§Type Parameters

§Parameters

§
count: number
[src]

Max size for the buffers.

§Return Type

§

Transform that emits arrays of items from the original observable.