Skip to main content
Module

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

💧EventEmitter's typesafe replacement
Latest
function arrPartition
import { arrPartition } from "https://deno.land/x/evt@v2.5.7/tools/reducers/partition.ts";

Type Parameters

ArrOf
U extends ArrOf

Parameters

arr: readonly ArrOf[]
matcher: (entry: ArrOf) => entry is U

Returns

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

Parameters

arr: readonly ArrOf[]
matcher: (entry: ArrOf) => boolean