Skip to main content
Module

x/denofun/pluck.ts>default

Small utility library containing functions, monads and other fun stuff.
Latest
function default
import { default } from "https://deno.land/x/denofun@v0.2.0/pluck.ts";

pluck takes an array of objects and a property name and returns an array containing the named property of each object

Parameters

key: string

property's key name

xs: any[]

input object

Returns

any

the list of values for a given key from each of the objects