Permalink
Browse files

Replace notElem definition with negation of elem.

  • Loading branch information...
1 parent 3edef1a commit ee814dddcca053a11c28327a22e2467de7ad25cc @beastaugh committed Aug 29, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/udon.js
View
@@ -245,13 +245,7 @@ Udon.elem = function(e, xs) {
};
Udon.notElem = function(e, xs) {
- var i = xs.length;
-
- while (i--) {
- if (e === xs[i]) return false;
- }
-
- return true;
+ return !Udon.elem(e, xs);
};
Udon.partition = function(f, xs) {

0 comments on commit ee814dd

Please sign in to comment.