Returns whether value is a set from this library — a HashSet or any other set — of the same major version, from any loaded copy of the package. Native Set is not.
value
HashSet
Set
Time: O(1), plus any getter or proxy trap that reading a property of value runs.
Any value.
true when value is a library set.
true
whatever a getter or proxy trap on value throws while the property is read.
isSetCollection(new HashSet([1])) // trueisSetCollection(new Set([1])) // false Copy
isSetCollection(new HashSet([1])) // trueisSetCollection(new Set([1])) // false
Returns whether
valueis a set from this library — aHashSetor any other set — of the same major version, from any loaded copy of the package. NativeSetis not.Time: O(1), plus any getter or proxy trap that reading a property of
valueruns.