Map

@native @JSType trait Map[K, V] extends StObject
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
class Map[K, V]

Value members

Concrete methods

def clear(): Unit
def delete(key: K): Boolean
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.

def forEach(callbackfn: Function3[V, K, Map[K, V], Unit]): Unit
def forEach(callbackfn: Function3[V, K, Map[K, V], Unit], thisArg: Any): Unit
def get(key: K): UndefOr[V]
def has(key: K): Boolean

Returns an iterable of keys in the map

Returns an iterable of keys in the map

def set(key: K, value: V): Map[K, V]

Returns an iterable of values in the map

Returns an iterable of values in the map

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete 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.

val size: Double
@JSName
val toStringTag: String