Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bouncer(arr) { // Don't show a false ID to this bouncer.
- return arr.filter(function(element){ return !!element; });
- }
- bouncer([7, "ate", "", false, 9]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement