Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/async_channels/internal/utils.ts>recordWithDefaults

Inspired by Go & Clojure Channels, async_channels provides channels as an asynchronous communication method between asynchronous functions.
Go to Latest
function recordWithDefaults
import { recordWithDefaults } from "https://deno.land/x/async_channels@v1.0.0-alpha54/internal/utils.ts";

Type Parameters

TKey extends string | symbol
TVal

Parameters

record: Record<TKey, TVal>
fn: (prop: TKey) => TVal