Created
August 25, 2020 17:45
-
-
Save psynewave/a1281e5d5266803fa3afcf0a076e110c to your computer and use it in GitHub Desktop.
Check if an Object is Empty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var checkIfObjectEmpty = obj => Object.keys(obj).length === 0 && obj.constructor === Object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment