Class MapEntry

The class represent an entry within a Map.

Property Summary 

PropertyDescription
key: Object (read-only)Returns the entry’s key.
value: Object (read-only)Returns the entry’s value.

Constructor Summary 

This class does not have a constructor, so you cannot create it directly.

Method Summary 

MethodDescription
getKey()Returns the entry’s key.
getValue()Returns the entry’s value.

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Property Details 

key 

key: Object (read-only)

Returns the entry's key.


value 

value: Object (read-only)

Returns the entry's value.


Method Details 

getKey() 

getKey(): Object

Returns the entry's key.

Returns:

  • the entry's key.

getValue() 

getValue(): Object

Returns the entry's value.

Returns:

  • the entry's value.