@anonymous/

WornUnderstatedPolecat

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function eliminate(x){


   return x !== "" && x !== false && x !== null && x !== undefined;

 }
 
var arr = [1, 0, false, null];
 
 
var result = arr.filter(eliminate);

console.log(result);
  
  
Native Browser JavaScript