Find Index

Reimplement Array.prototype.findIndex — locate the position of the first element passing a test.