Skip to content

Instantly share code, notes, and snippets.

@jonathantneal
Created October 24, 2011 18:21
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 jonathantneal/1309709 to your computer and use it in GitHub Desktop.
Save jonathantneal/1309709 to your computer and use it in GitHub Desktop.
A really nice allDefined function
function isDefined(val) {
return val != null;
}
function allDefined() {
var
i = -1,
a = arguments,
l = as.length;
while (++i < l) if (a[i] == null) return false;
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment