Array.find
if (!Array.prototype.find) {
Array.prototype.find = function (callback, thisArg) {
for (let i = 0; i < this.length; i++) {
if (this[i] !== undefined && callback.call(thisArg, this[i], i, this)) {
return this[i];
}
}
return undefined;
};
}