Last active
January 17, 2020 17:15
-
-
Save meekg33k/2e83ebd722f47116f3b6c27ef912f54b to your computer and use it in GitHub Desktop.
Updated logic to check if an object is really not empty https://medium.com/p/177b4a654ef6
This file contains hidden or 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
if (someObject && Object.keys(someObject).length > 0) { | |
//Our updated test to check if an object is really not empty | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment