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

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

Faster and smaller alternative to Ramda
Go to Latest
function partition
import { partition } from "https://deno.land/x/rambda@v8.6.0/files/index.d.ts";

Parameters

predicate: Predicate<T>
input: T[]

Returns

[T[], T[]]

Parameters

predicate: Predicate<T>

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; }]