Simple ES6 Array.prototype.findIndex polyfill for older environments.