1.0.1 • Published 1 year ago

removefalsevaluefromarray v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

About

This is a simple package that removes all the false values from an array.

Usage

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]

Hire Me

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