Some other set to compare against
The difference defined as objects in this which are not present in other
Test whether this set is equal to some other set. Sets are equal if they share the same members, independent of order
Some other set to compare against
Are the sets equal?
Return the first value from the set.
The first element in the set, or undefined
Return the intersection of two sets.
Some other set to compare against
The intersection of both sets
Test whether this set has an intersection with another set.
Another set to compare against
Do the sets intersect?
Test whether this set is a subset of some other set. A set is a subset if all its members are also present in the other set.
Some other set that may be a subset of this one
Is the other set a subset of this one?
Convert a set to a JSON object by mapping its contents to an array
The set elements as an array.
Test whether every element in this Set satisfies a certain test criterion.
The test criterion to apply. Positional arguments are the value, the index of iteration, and the set being tested.
Does every element in the set satisfy the test criterion?
Filter this set to create a subset of elements which satisfy a certain test criterion.
The test criterion to apply. Positional arguments are the value, the index of iteration, and the set being filtered.
A new Set containing only elements which satisfy the test criterion.
Find the first element in this set which satisfies a certain test criterion.
The test criterion to apply. Positional arguments are the value, the index of iteration, and the set being searched.
The first element in the set which satisfies the test criterion, or undefined.
Create a new Set where every element is modified by a provided transformation function.
The transformation function to apply.Positional arguments are the value, the index of iteration, and the set being transformed.
A new Set of equal size containing transformed elements.
Create a new Set with elements that are filtered and transformed by a provided reducer function.
A reducer function applied to each value. Positional arguments are the accumulator, the value, the index of iteration, and the set being reduced.
The initial value of the returned accumulator.
The final value of the accumulator.
Test whether any element in this Set satisfies a certain test criterion.
The test criterion to apply. Positional arguments are the value, the index of iteration, and the set being tested.
Does any element in the set satisfy the test criterion?
Return the difference of two sets.