Skip to content

Instantly share code, notes, and snippets.

@karolk
Created April 25, 2012 11:56
Show Gist options
  • Save karolk/2489201 to your computer and use it in GitHub Desktop.
Save karolk/2489201 to your computer and use it in GitHub Desktop.
check if a value is null, undefined empty string or an empty array
//returns true if [], '', null, undefined
//returns false if 0, false, {}, NaN
function isEmptyNullUndef(value) {
return [value] == '';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment