Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Faster and smaller alternative to Ramda
Go to Latest
function partitionIndexed
import { partitionIndexed } from "https://deno.land/x/rambda@v9.1.0/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; }]