Module

x/rambda/mod.ts>groupWith

Faster and smaller alternative to Ramda
Go to Latest
function groupWith
import { groupWith } from "https://dotland.deno.dev/x/rambda@v9.2.0/mod.ts";

It returns separated version of list or string input, where separation is done with equality compareFn function.

Parameters

compareFn: (x: T, y: T) => boolean

Returns

(input: T[]) => (T[])[]

Parameters

compareFn: (x: T, y: T) => boolean
input: T[]

Returns

(T[])[]

Parameters

compareFn: (x: T, y: T) => boolean
input: string

Returns

string[]