I having second thoughts about whether this is good or not, because I wrote this code in under one minute and it passes the whole challenge. Is there any hidden catch to this challenge?
function findElement(arr, func) {
var num = 0;
var filtered = arr.filter(func);
return filtered[0];
}