Skip to content

Instantly share code, notes, and snippets.

@lucnap
Created February 19, 2016 09:20
Show Gist options
  • Save lucnap/dcd9454a639e1ea29a2a to your computer and use it in GitHub Desktop.
Save lucnap/dcd9454a639e1ea29a2a to your computer and use it in GitHub Desktop.
Check if a javascript object is empty
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