was.js
/trunk/lib/lambda/aggregators.js/aggregators.js |
@@ -9,7 +9,7 @@ |
throw "Pairs of predicates expected for cases"; |
} |
|
(Array.isArray(this) ? this : [ this ]).forEach((s) => { |
(Array.isArray(q) ? q : [ q ]).forEach((s) => { |
var m = false; |
for(var i = 0; i < c.length; i += 2) { |
if(!c[i](s)) { |
@@ -27,7 +27,9 @@ |
}); |
} |
if (!Array.prototype.switch) { |
Array.prototype.switch = wasSwitch; |
Array.prototype.switch = function(d, ...c) { |
wasSwitch(this, d, ...c) |
}; |
} |
// jQuery |
if(typeof jQuery === 'function') { |