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