Hey there, I’ve been checking in the the forum but I haven’t seen in here the way I’ve approached it. Hope you can find it helpful.
function bouncer(arr) {
// create new array to push the desire values in
const newArr = []
// map through the array and we "convert" to boolean every item in the array
// if the item is true (string, number, etc) we push it into the new array using a ternary operator
arr.map( item => !!item === true && newArr.push(item) )
// we return the new array that holds the values that aren't undefined, false, 0 or NaN
return newArr;
}