Skip to main content
Module

x/rambda/rambda.js>pickAll

Faster and smaller alternative to Ramda
Go to Latest
function pickAll
import { pickAll } from "https://deno.land/x/rambda@v9.1.1/rambda.js";

Same as R.pick but it won't skip the missing props, i.e. it will assign them to undefined.

Type Parameters

T
K extends keyof T

Parameters

propsToPicks: K[]
input: T

Returns

Pick<T, K>

Parameters

propsToPicks: string[]
input: T

Parameters

propsToPicks: string[]

Returns

<T, U>(input: T) => U

Parameters

propsToPick: string
input: T

Parameters

propsToPick: string

Returns

(input: T) => U