Created
February 19, 2016 09:20
-
-
Save lucnap/dcd9454a639e1ea29a2a to your computer and use it in GitHub Desktop.
Check if a javascript 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
function isObjectEmpty(obj) { | |
return Object.keys(obj).length === 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment