Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/itertools/itertools.ts>groupby

🦕 A TypeScript port of Python's itertools and more-itertools for Deno
Latest
function groupby
import { groupby } from "https://deno.land/x/itertools@v1.1.2/itertools.ts";

Parameters

iterable: Iterable<T>
optional
keyFn: (v: T) => Primitive = [UNSUPPORTED]

Returns

Iterable<[Primitive, Iterable<T>]>