Package Exports
- is-empty-obj
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-empty-obj) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-empty-obj

Check if an object is empty or not.
☁️ Installation
$ npm i --save is-empty-obj
📋 Example
const isEmptyObj = require("is-empty-obj");
console.log(isEmptyObj({}));
// true
console.log(isEmptyObj([]));
// true
console.log(isEmptyObj([42]));
// false
console.log(isEmptyObj({ location: "mars" }));
// false
📝 Documentation
isEmptyObj(input, b)
Check if an object is empty or not. This will throw if you don't pass an object.
Params
- Object|Array
input
: The input object. - Number
b
: Param descrpition.
Return
- Boolean
true
if the object doesn't have any keys.false
otherwise.
😋 How to contribute
Have an idea? Found a bug? See how to contribute.