-
Notifications
You must be signed in to change notification settings - Fork 3
isEmpty
Subhajit Sahu edited this page Dec 8, 2022
·
12 revisions
Check if an object is empty.
function isEmpty(x)
// x: an object
const object = require('extra-object');
var x = {a: 1, b: 2, c: 3};
object.isEmpty(x);
// → false
var x = {};
object.isEmpty(x);
// → true