You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
363 B
1 line
363 B
Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(r){if(null==this)throw TypeError('"this" is null or not defined');var t=Object(this),e=t.length>>>0;if("function"!=typeof r)throw TypeError("predicate must be a function");for(var i=arguments[1],o=0;o<e;){var n=t[o];if(r.call(i,n,o,t))return n;o++}},configurable:!0,writable:!0}); |