function ArrayMax(array){ //{{{ //Calculate array max using for loop instead of Math.max.apply(null, array) to avoid recursive stack overflow in mobile browsers var max=-Infinity; for (var i=0;i=value)return 1; } return 0; } //}}} function ArrayAnyAboveStrict(array,value) { //{{{ for(var i=0;ivalue)return 1; } return 0; } //}}} function ArrayAnd(array1,array2) { //{{{ var array=array1; for (var i=0;i