Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util/mod.ts>lazyMethods

Package publishing for deno.land/x/polkadot
Go to Latest
function lazyMethods
import { lazyMethods } from "https://deno.land/x/polkadot@0.2.19/util/mod.ts";

Parameters

result: Record<string, T>
items: readonly K[]
creator: (
item: K,
index: number,
self: S,
) => T
optional
getName: (item: K, index: number) => string

Returns

Record<string, T>