Skip to main content
Module

x/weakref/iterable_weak_map.ts>IterableWeakMap

Weak Collection Library for Deno and Node.js.
Latest
class IterableWeakMap
implements WeakMap<K, V>, Map<K, V>
import { IterableWeakMap } from "https://deno.land/x/weakref@0.2.0/iterable_weak_map.ts";

Constructors

new
IterableWeakMap(entries?: readonly (readonly [K, V])[] | null)
new
IterableWeakMap(iterable: Iterable<readonly [K, V]>)
new
IterableWeakMap(iterable?: Iterable<readonly [K, V]> | null)

Type Parameters

K extends object
V

Properties

readonly
size: number
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?: unknown
): 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]>