find-polyfill
Version:
Implements the find method for Array if not already implemented
1 lines • 121 B
JavaScript
Array.prototype.find||(Array.prototype.find=function(r){for(var t=0,i=this.length;t<i;t++)if(r(this[t]))return this[t]});
Implements the find method for Array if not already implemented