Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/evt/tools/reducers/index.ts>partition

💧EventEmitter's typesafe replacement
Go to Latest
function partition
Re-export
import { partition } from "https://deno.land/x/evt@v2.4.22/tools/reducers/index.ts";

Type Parameters

ArrOf
U extends ArrOf

Parameters

matcher: (entry: ArrOf) => entry is U

Returns

ReduceArguments<ArrOf, [U[], Exclude<ArrOf, U>[]]>

Parameters

matcher: (entry: ArrOf) => boolean

Returns

ReduceArguments<ArrOf, [ArrOf[], ArrOf[]]>