This is a simple package that removes all the false values from an array.
import removeFalseValueFromArray from "removefalsevaluefromarray";
console.log(
removeFalseValueFromArray([
1,
2,
3,
4,
5,
6,
7,
8,
9,
0,
false,
null,
undefined,
NaN,
"",
])
); // [1, 2, 3, 4, 5, 6, 7, 8, 9]
Want to work with a kickass frontend dev?
Email me at ikhan77727@gmail.com. LinkedIn: https://www.linkedin.com/in/imrankhan001/
P.S: I excel in Remote Work Only