Created
June 28, 2017 16:59
-
-
Save michaelnagy/11d06bc626b41a40a979d469f6546c11 to your computer and use it in GitHub Desktop.
Check if an object has empty properties and return the first empty property
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 hasEmptyProperty(values) { | |
for (var key in values) { | |
return true && key | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment