45d95727308be2fb6227974dad89052c7d0f46782761a2cdae552c097a78286becfc10ba5aecf399167d3b64023cdcc3b3134d1ea649cae6a8b91f9c8da472 383 B

12345678910111213141516171819
  1. var some;
  2. if (Array.prototype.some) {
  3. some = Array.prototype.some;
  4. } else {
  5. some = function (fun) {
  6. var t = Object(this);
  7. var len = t.length >>> 0;
  8. for (var i = 0; i < len; i++) {
  9. if (i in t && fun.call(this, t[i], i, t)) {
  10. return true;
  11. }
  12. }
  13. return false;
  14. };
  15. }
  16. export { some as default };