Skip to content

Instantly share code, notes, and snippets.

@meekg33k
Last active January 17, 2020 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meekg33k/2e83ebd722f47116f3b6c27ef912f54b to your computer and use it in GitHub Desktop.
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
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