Array.findIndex does not handle promises
JavaScript
const array = [
Promise.resolve(false)
]
const index = array.findIndex(async promise => await promise)
console.log(index)
const array = [
Promise.resolve(false)
]
const index = array.findIndex(async promise => await promise)
console.log(index)