UNPKG

shogi.js

Version:
23 lines (22 loc) 629 B
"use strict"; exports.__esModule = true; if (!Array.prototype.some) { Array.prototype.some = function (fun /*, thisp */) { "use strict"; if (this == null) { throw new TypeError(); } var t = Object(this), len = t.length >>> 0; if (typeof fun != "function") { throw new TypeError(); } // eslint-disable-next-line prefer-rest-params var thisp = arguments[1]; for (var i = 0; i < len; i++) { if (i in t && fun.call(thisp, t[i], i, t)) { return true; } } return false; }; }