Results 181 - 200 of 296
The clear()
method used to remove all elements from a WeakMap
object, but is no longer part of ECMAScript and its implementations.
The delete()
method removes the specified element from a WeakMap
object.
The get()
method returns a specified element from a WeakMap
object.
The has()
method returns a boolean indicating whether an element with the specified key exists in the WeakMap
object or not.
The set()
method adds a new element with a specified key
and value
to a WeakMap
object.
The add()
method appends a new object to the end of a WeakSet
object.
The clear()
method used to remove all elements from a WeakSet
object, but is no longer part of ECMAScript and its implementations.
The delete()
method removes the specified element from a WeakSet
object.
The has()
method returns a boolean indicating whether an object exists in a WeakSet
or not.
The initial value of the
@@iterator
property is the same function object as the initial value of the
values()
property.
The copyWithin()
method shallow copies part of an array to another location in the same array and returns it, without modifying its size.
The entries()
method returns a new Array Iterator
object that contains the key/value pairs for each index in the array.
The every()
method tests whether all elements in the array pass the test implemented by the provided function.
The fill()
method fills all the elements of an array from a start index to an end index with a static value.
The filter()
method creates a new array with all elements that pass the test implemented by the provided function.
The
find()
method returns a
value in the array, if an element in the array satisfies the provided testing function. Otherwise
undefined
is returned.
The findIndex()
method returns an index in the array, if an element in the array satisfies the provided testing function. Otherwise -1 is returned.
The forEach()
method executes a provided function once per array element.
The includes()
method determines whether an array includes a certain element, returning true
or false
as appropriate.
The indexOf()
method returns the first index at which a given element can be found in the array, or -1 if it is not present.