Module

x/rambda/rambda.js>pluck

Faster and smaller alternative to Ramda
Go to Latest
function pluck
import { pluck } from "https://dotland.deno.dev/x/rambda@v9.2.0/rambda.js";

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: T[]

Parameters

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

Type Parameters

P extends string

Parameters

property: P

Returns

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

Parameters

property: number

Returns

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