es7-is-empty-obj
Check if object is empty the modern way ⚡️
Highlights
- Uses the ES7
Object.keys()
- No dependencies
- ~ 5 lines of code
Install
$ npm install es7-is-empty-obj
Usage
const isEmptyObj = ; const objectOne = {};const objectTwo = 'foo': 'bar'; ;//=> true ;//=> false
API
isEmptyObj(obj)
obj
Type: Object
License
MIT © Antoni Kepinski