Chalarangelo/30-seconds-of-code

isObjectEmpty checking snippet

ramaiahkethana opened this issue · 2 comments

isObjectEmpty will check the object empty or not.

Example:

isObjectEmpty({}) // true
isObjectEmpty({ a: 1 }) // false

isEmpty does exactly what you are describing.