Tell us what’s happening:
None of the test case except, test case #1 is passing though all of the test cases are passing in my IDE. I tried refreshing the browser and signing out/in but not luck so far.
Your code so far
function findElement(array, func) {
for (element of array) {
if (func(element)) {
return element;
}
}
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0
Challenge Information:
Build a First Element Finder - Build a First Element Finder