Skip to main content
Module

x/rambda/index.d.ts>objOf

Faster and smaller alternative to Ramda
Go to Latest
function objOf
import { objOf } from "https://deno.land/x/rambda@v7.0.1/index.d.ts";

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>