-
Notifications
You must be signed in to change notification settings - Fork 1
isEmpty
Subhajit Sahu edited this page Dec 2, 2022
·
15 revisions
Check if a set is empty.
function isEmpty(x)
// x: a set
const set = require('extra-set');
var x = new Set([1, 2, 3]);
set.isEmpty(x);
// → false
var x = new Set();
set.isEmpty(x);
// → true