Class MapEntry

The class represent an entry within a Map.

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

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

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

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

key: Object (read-only)

Returns the entry's key.


value: Object (read-only)

Returns the entry's value.


getKey(): Object

Returns the entry's key.

Returns:

  • the entry's key.

getValue(): Object

Returns the entry's value.

Returns:

  • the entry's value.