JSFiddle - React, Tailwind, and code Playground

by Vatsal Pande

JavaScript

/* Write a function to remove falsy values (false, null, 0, "", undefined, and NaN) from a given array.

array - [0, 1, false, true, '', 'hello', null, undefined, NaN]; */