const arr = [false, 0, undefined, , '', NaN, 9, true, null, 'test']
const arr1 = arr.filter(Boolean)
console.log(arr1)	//[0, 9, 'test']