Module

x/rambda/rambda.js>objOf

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

It creates an object with a single key-value pair.

Type Parameters

T
K extends string

Parameters

key: K
value: T

Returns

Record<K, T>

Type Parameters

K extends string

Returns

<T>(value: T) => Record<K, T>