Array.prototype.findIndex(fn, startIndex = 0)

# Cyril Auburtin (3 days ago)

It should be possible to add a second optional argument to the find and findIndex array methods, similarly to indexOf

# Andrea Giammarchi (3 days ago)

isn't the second argument already reserved for the context?

[1, 2, 3].findIndex(function (i) { return i == this; }, 2);
// 1
# Jordan Harband (3 days ago)

I believe every array iteration method that takes a callback, except for reduce and reduceRight, take an optional receiver as the last argument (the this value), so they can't be meaningfully/ergonomically extended.