Array.findIndex does not handle promises

by Arnaud Buchholz

JavaScript

const array = [
	Promise.resolve(false)
]

const index = array.findIndex(async promise => await promise)
console.log(index)