The Set object lets you store unique values of any type, whether values or object references.
The Set object lets you store unique values of any type, whether values or object references.
(add this value)
Method.
The add() method appends a new element with a specified value the end of a Set object.
mySet.add(value);
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/add
Method. The add() method appends a new element with a specified value the end of a Set object. `mySet.add(value);` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/add`
(clear this)
Method.
The clear() method removes all elements from a Set object.
mySet.clear();
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/clear
Method. The clear() method removes all elements from a Set object. `mySet.clear();` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/clear`
(delete this value)
Method.
The delete() method removes the specified element from a Set
mySet.delete(value);
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/delete
Method. The delete() method removes the specified element from a Set `mySet.delete(value);` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/delete`
(entries this)
Method.
The entries() method returns a new Iterator object that contains array of [value, value] for each element in the Set object, in order. For Set objects there is no key like in Map objects. However, keep the API similar to the Map object, each entry has the same for its key and value here, so that an array [value, value] is
mySet.entries()
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/entries
Method. The entries() method returns a new Iterator object that contains array of [value, value] for each element in the Set object, in order. For Set objects there is no key like in Map objects. However, keep the API similar to the Map object, each entry has the same for its key and value here, so that an array [value, value] is `mySet.entries()` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/entries`
(for-each this & args)
Method.
The forEach() method executes a provided function once for each in the Set object, in insertion order.
mySet.forEach(callback[, thisArg])
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/forEach
Method. The forEach() method executes a provided function once for each in the Set object, in insertion order. `mySet.forEach(callback[, thisArg])` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/forEach`
(has this value)
Method.
The has() method returns a boolean indicating whether an element the specified value exists in a Set object or not.
mySet.has(value);
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/has
Method. The has() method returns a boolean indicating whether an element the specified value exists in a Set object or not. `mySet.has(value);` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/has`
(length this)
Property.
The value of the length property is 0.
Property. The value of the length property is 0.
(prototype this)
Property.
The Set.prototype property represents the prototype for the js.Set
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/prototype
Property. The Set.prototype property represents the prototype for the `js.Set` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/prototype`
(set-length! this val)
Property.
The value of the length property is 0.
Property. The value of the length property is 0.
(set-prototype! this val)
Property.
The Set.prototype property represents the prototype for the js.Set
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/prototype
Property. The Set.prototype property represents the prototype for the `js.Set` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/prototype`
(set-size! this val)
Property.
The size accessor property returns the number of (unique) elements
a js.Set
object.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/size
Property. The size accessor property returns the number of (unique) elements a `js.Set` object. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/size`
(size this)
Property.
The size accessor property returns the number of (unique) elements
a js.Set
object.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/size
Property. The size accessor property returns the number of (unique) elements a `js.Set` object. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/size`
(values this)
Method.
The values() method returns a new Iterator object that contains values for each element in the Set object in insertion order.
mySet.values();
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/values
Method. The values() method returns a new Iterator object that contains values for each element in the Set object in insertion order. `mySet.values();` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/values`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close