Minimal Array.find polyfill
if (!Array.prototype.find) { Array.prototype.find = function (predicate) { return this.filter(predicate)[0] } }