Create a function that removes all falsy values (false, 0, "", null, undefined, NaN) from an array.
EasyProblem Statement
Create a function that removes all falsy values (false, 0, "", null, undefined, NaN) from an array.
Sample Input
[0, 1, false, 2, "", 3, null, undefined, NaN]
Sample Output
[ 1, 2, 3 ]
Limits
Time: 2s · Memory: 256 MB