Options
All
  • Public
  • Public/Protected
  • All
Menu

A generic wrapper to Map and WeakMap that can use both non-primitives (objects and symbols) and primitives as keys, creating the underlying storage as needed.

Type parameters

  • A

  • B

Hierarchy

  • WeakishMap

Implements

Index

Properties

Methods

Properties

Private Optional map

map: Map<A, B>

Private Optional weakMap

weakMap: WeakMap<object, B>

Methods

get

  • get(k: A): B | undefined

has

  • has(k: A): boolean

set

  • set(k: A, v: B): this

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Private property
  • Static method

Generated using TypeDoc