Checks if a Set contains any element
Returns true if the Set is empty
true
const result = isEmpty(new Set());console.log(result); // true
Returns false if the Set contains elements
false
const result = isEmpty(new Set([1]));console.log(result); // false
true if the Set is empty, otherwise false
the Set to check
Generated using TypeDoc
Checks if a Set contains any element
Example
Returns
trueif the Set is emptyExample
Returns
falseif the Set contains elementsReturns
trueif the Set is empty, otherwisefalse