Skip to content

isEmpty

Subhajit Sahu edited this page Jun 12, 2020 · 12 revisions

Checks if object is empty. 🏃 📼 📦 🌔 📒

Similar: size, isEmpty.

object.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

references

Clone this wiki locally