for about 3 hours I have been pounding my head against the wall thinking about how to solve this problem and at the end, I wrote this code it did pass the challenge but after i finished it and i felt relief i thought that would a FALSY value return FALSE ?? which it would so if I just tried to think in another way all I had to do was return arr[i]
function bouncer(arr) {
let result = [];
for (let i = 0; i < arr.length; i++) {
if (typeof(arr[i]) !== "boolean" && arr[i] !== "" && arr[i] !== undefined && arr[i] !== 0 && arr[i] !== null && !Number.isNaN(arr[i])) {
result.push(arr[i]);
}
}
return result;
}
bouncer([7, "ate", "", false, 9]);