Module

x/rambda/mod.ts>props

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

It takes list with properties propsToPick and returns a list with property values in obj.

Type Parameters

P extends string
T

Parameters

propsToPick: P[]
obj: Record<P, T>

Type Parameters

P extends string

Parameters

propsToPick: P[]

Returns

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

Type Parameters

P extends string
T

Parameters

propsToPick: P[]

Returns

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