Readonly
[toThe initial value of Object.prototype.constructor is the standard built-in Object constructor.
Static
Readonly
[species]The number of elements in the map. Derived from Map#size.
Returns the element of the element at an index of the map. Similar to Array#at().
The index of the element.
The found element, or undefined
if no element matches the index.
Removes all elements from the map.
Derived from the Map#clear() method, however this
is returned instead of void
.
The map.
Merges the map with one or more other maps, or a key / value pair. Similar to Array#concat().
The merged map.
Removes a specified element from the map. Derived from the Map#delete() method.
The key of the element to remove.
If the element was removed, false if it does not exist.
Returns a new iterator object that contains key value pairs for each element in the map. Derived from the Map#entries() method.
The new iterator object.
Tests if all elements in the map satisfy a test specified in the callback. Similar to Array#every().
true
if all elements pass the callback test, false
otherwise.
Sets every element of the map to the specified value. Similar to Array#fill().
The value to set all elements of the map to.
The map.
Creates a new map with all elements that pass a test specified in the callback. Similar to Array#filter().
A map with elements that passed the provided test.
Returns the first element in the map that satisfies the provided test. Similar to Array#find().
The first element that satisfies the test. If no element is found, undefined
is returned.
Returns the first key in the map that satisfies the provided test. Similar to Array#findIndex().
The first key that satisfies the test. If no element is found, undefined
is returned.
Returns the first value(s) of the map.
The first value if no amount is specified, else an array of the first values.
Returns the first value(s) of the map.
The number of items to retrieve from the start of the map.
The first value if no amount is specified, else an array of the first values.
Returns a new map created by applying a specified callback function to each element of the map, then flattening the result by 1 level.
Identical to ExtendedMap#map()
followed by flattening by a depth of 1.
Similar to Array#flatMap().
A function to apply to every element of the map.
Optional
thisArg: anyA value to use as this
when executing callbackfn
.
The new map.
Executes the provided function once for each element in the map.
Derived from the Map#forEach() method, however this
is returned instead of void
.
The map.
Creates a string by concatenating the values of all elements of the map.
A string to separate values by. Defaults to ,
.
The created strings.
Creates a string by concatenating the keys of all elements of the map.
A string to separate keys by. Defaults to ,
.
The created strings.
Returns a new iterator object that contains keys for each element in the map. Derived from the Map#keys() method.
The new iterator object.
Creates an array filled with the results from calling a specified callback function on each element of the map. Similar to Array#map().
The array.
Executes a specified reducer callback function on each element of the map to produce a single value. Similar to Array#reduce().
The result of the reducer.
Tests if any element in the map satisfies a test specified in the callback. Similar to Array#some().
true
if a single element passes the callback test, false
otherwise.
Removes all elements in the map that satisfy a specified test.
A map containing the removed elements.
Returns a new iterator object that contains values for each element in the map. Derived from the Map#values() method.
The new iterator object.
Static
isDetermines if a value is an extended map.
The value to test.
Static
isDetermines if a value is a map.
The value to test.
A Map with additional methods. Similar to that of discord.js's collection