Returns whether the given object is empty
the object to check
whether the given object is empty
David Hsing
isEmpty(null); // trueisEmpty(undefined); // trueisEmpty(0); // falseisEmpty({}); // trueisEmpty('foobar'); // false Copy
isEmpty(null); // trueisEmpty(undefined); // trueisEmpty(0); // falseisEmpty({}); // trueisEmpty('foobar'); // false
Returns whether the given object is empty