function bouncer(arr) { // Don\'t show a false ID to this bouncer. function a(b) { if(b !== false) { return b; } } arr = arr.filte
simplest way to do it :
function bouncer(arr) { return arr.filter(x => !!x); }