Module

x/rambda/immutable.d.ts>pluck

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

It returns list of the values of property taken from the all objects inside list.

Type Parameters

K extends keyof T
T

Parameters

property: K
list: readonly T[]

Returns

readonly T[K][]

Parameters

property: number
list: readonly { readonly [k: number]: T; }[]

Returns

readonly T[]

Type Parameters

P extends string

Parameters

property: P

Returns

<T>(list: readonly Record<P, T>[]) => readonly T[]

Parameters

property: number

Returns

<T>(list: readonly { readonly [k: number]: T; }[]) => readonly T[]