Here you can find the source of any()
Array.prototype.any = function() { var i, _i, _len; for (_i = 0, _len = this.length; _i < _len; _i++) { i = this[_i];/*from w ww. jav a 2 s. com*/ if (i) { return true; } } return false; };
Array.prototype.any = function(){ return(this.length > 0); };
Array.prototype.any = function () { return this.length > 0;
Array.prototype.any = function(conditionFunction) { try { this.each(function(element) { if (conditionFunction(element)) { throw 'found!'; }); return false; } catch(e) { ...
Array.prototype.any = function(delegate) { for (var i=0; i < this.length; i++) { if (delegate.apply(this, [this[i]]) === true) { return true; return false; };