Skip to main content
Module

x/capi/mod.ts>$.ScaleMap

[WIP] A framework for crafting interactions with Substrate chains
Latest
class $.ScaleMap
implements Map<K, V>
import { $ } from "https://deno.land/x/capi@v0.1.1-beta.1/mod.ts";
const { ScaleMap } = $;

Constructors

new
ScaleMap($key: Codec<K>, entries?: Iterable<[K, V]>)

Properties

readonly
size
readonly
[Symbol.toStringTag]

Methods

clear(): void
delete(key: K): boolean
entries(): IterableIterator<[K, V]>
forEach(callbackfn: (
value: V,
key: K,
map: Map<K, V>,
) => void
, thisArg?: any
): void
get(key: K): V | undefined
has(key: K): boolean
keys(): IterableIterator<K>
set(key: K, value: V): this
values(): IterableIterator<V>
[Symbol.iterator](): IterableIterator<[K, V]>