Map

@JSGlobal("Map") @native @JSType class Map[K, V]() extends StObject with Map[K, V]
Companion
object
trait Map[K, V]
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Constructors

def this(entries: Array[Tuple2[K, V]])
def this(iterable: Iterable[Tuple2[K, V]])

Inherited methods

def clear(): Unit
Inherited from
Map
def delete(key: K): Boolean
Inherited from
Map
def entries(): IterableIterator[Tuple2[K, V]]

Returns an iterable of key, value pairs for every entry in the map.

Returns an iterable of key, value pairs for every entry in the map.

Inherited from
Map
def forEach(callbackfn: Function3[V, K, Map[K, V], Unit], thisArg: Any): Unit
Inherited from
Map
def forEach(callbackfn: Function3[V, K, Map[K, V], Unit]): Unit
Inherited from
Map
def get(key: K): UndefOr[V]
Inherited from
Map
def has(key: K): Boolean
Inherited from
Map
def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object

Returns an iterable of keys in the map

Returns an iterable of keys in the map

Inherited from
Map
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def set(key: K, value: V): Map[K, V]
Inherited from
Map
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Returns an iterable of values in the map

Returns an iterable of values in the map

Inherited from
Map

Inherited fields

@JSName
var iterator: Function0[IterableIterator[Tuple2[K, V]]]

Returns an iterable of entries in the map.

Returns an iterable of entries in the map.

Inherited from
Map
val size: Double
Inherited from
Map
@JSName
val toStringTag: String
Inherited from
Map