Results 1 - 16 of 16

Set

The Set object lets you store unique values of any type, whether primitive values or object references.
ECMAScript6 JavaScript set

get Set[@@species]

The Set[@@species] accessor property returns the Set constructor.
ECMAScript6 JavaScript Property set

Set.prototype

The Set.prototype property represents the prototype for the Set constructor.
ECMAScript6 JavaScript Property set

Keyed collections

This chapter introduces collections of data which are ordered by a key; Map and Set objects contain elements which are iterable in the order of insertion.
Collections Guide JavaScript Map set

Set.prototype.add()

The add() method appends a new element with a specified value to the end of a Set object.
ECMAScript6 JavaScript Method Prototype set

Set.prototype.clear()

The clear() method removes all elements from a Set object.
ECMAScript6 JavaScript Method Prototype set

Set.prototype.delete()

The delete() method removes the specified element from a Set object.
ECMAScript6 JavaScript Method Prototype set

Set.prototype.forEach()

The forEach() method executes a provided function once per each value in the Set object, in insertion order.
ECMAScript6 JavaScript Method Prototype set

Set.prototype.has()

The has() method returns a boolean indicating whether an element with the specified value exists in a Set object or not.
ECMAScript6 JavaScript Method Prototype set

Set.prototype.size

The size accessor property returns the number of elements in a Set object.
ECMAScript6 JavaScript Property Prototype set

FormData.set()

The set() method of the FormData interface sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.
API FormData Method Reference set XHR XMLHttpRequest

Set.prototype[@@iterator]()

The initial value of the @@iterator property is the same function object as the initial value of the values property.
ECMAScript6 Iterator JavaScript Method Prototype Reference set

Set.prototype.entries()

The entries() method returns a new Iterator object that contains an array of [value, value] for each element in the Set object, in insertion order. For Set objects there is no key like in Map objects. However, to keep the API similar to the Map object, each entry has the same value for its key and value here, so that an array [value, value] is returned.
ECMAScript6 Iterator JavaScript Method Prototype set

Set.prototype.values()

The values() method returns a new Iterator object that contains the values for each element in the Set object in insertion order.
ECMAScript6 Iterator JavaScript Method Prototype set