1. if (!Array.prototype.some) {
    2. Array.prototype.some = function (fun /*, thisp */) {
    3. if (this === void 0 || this === null) { throw TypeError(); }
    4. var t = Object(this);
    5. var len = t.length >>> 0;
    6. if (typeof fun !== "function") { throw TypeError(); }
    7. var thisp = arguments[1], i;
    8. for (i = 0; i < len; i++) {
    9. if (i in t && fun.call(thisp, t[i], i, t)) {
    10. return true;
    11. }
    12. }
    13. return false;
    14. };
    15. }