Skip to main content
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.5.2/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