@extra-object/is-empty.min

Checks if object is empty.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@extra-object/is-empty.min
032.2.52 years ago2 years agoMinified + gzip package size for @extra-object/is-empty.min in KB

Readme

Checks if object is empty. :running: :vhs: :package: :moon: :ledger:
Similar: size, isEmpty.
This is part of package extra-object.

This is browserified, minified version of @extra-object/is-empty.
It is exported as global variable objectisEmpty.
CDN: unpkg
, jsDelivr.

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