Skip to main content
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@v7.0.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; }]