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

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

💧EventEmitter's typesafe replacement
Go to Latest
function partition
import { partition } from "https://deno.land/x/evt@v2.4.22/tools/reducers/partition.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