Skip to main content
Module

x/scale/codecs/mod.ts>ScaleMap

A TypeScript reference implementation of SCALE transcoding
Go to Latest
class ScaleMap
implements Map<K, V>
import { ScaleMap } from "https://deno.land/x/scale@v0.13.0/codecs/mod.ts";

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]>