删除数组中特定值算法挑战
function bouncer(arr) {
// Don't show a false ID to this bouncer.
var array = [];
for(var i = 0; i < arr.length; i ++){
if(arr[i]){
array.push(arr[i]);
}
}
return array;
}
bouncer([7, "ate", "", false, 9]);