Checks if a value is a Set.
value
Returns true if the value if a Set
true
const result = isSet(new Set());console.log(result); // true
Returns false if the value is not as Set
false
const result = isSet([]);console.log(result); // false
true if value is a Set, otherwise false
the Set element type
the value to check
Generated using TypeDoc
Checks if a
valueis a Set.Example
Returns
trueif the value if a SetExample
Returns
falseif the value is not as SetReturns
trueifvalueis a Set, otherwisefalse