removefalsevaluefromarray
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

/removefalsevaluefromarray/

    Package Sidebar

    Install

    npm i removefalsevaluefromarray

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    13.5 kB

    Total Files

    4

    Last publish

    Collaborators

    • imran001