배열을 믿을 수 있는 상태로 만드는 것
Boolean 값을 iterator로 사용해 제거할 수 있음
false, 0, -0, on, "", null, undefined, NaN
let array = [false, 0, -0, 0n, "", null, undefined, NaN, {hello: "world"}];
console.log(array.filter(Boolean));
참고
https://michaeluloth.com/javascript-filter-boolean/