Skip to main content
Module

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

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