Module

x/rambda/mod.ts>applySpec

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

Type Parameters

Spec extends Record<string, AnyFunction>

Returns

(...args: Parameters<ValueOfRecord<Spec>>) => [Key in keyof Spec]: ReturnType<Spec[Key]>

Parameters

spec: any

Returns

(...args: unknown[]) => T