Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.4.22/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