Module

x/rambda/files/index.d.ts>partitionIndexed

Faster and smaller alternative to Ramda
Latest
function partitionIndexed
import { partitionIndexed } from "https://dotland.deno.dev/x/rambda@9.4.1/files/index.d.ts";

Returns

(input: T[]) => [T[], T[]]

Parameters

predicate: (x: T, prop?: string) => boolean
input: { [key: string]: T; }

Returns

[{ [key: string]: T; }, { [key: string]: T; }]

Parameters

predicate: (x: T, prop?: string) => boolean

Returns

(input: { [key: string]: T; }) => [{ [key: string]: T; }, { [key: string]: T; }]