JSFiddle - React, Tailwind, and code Playground

by Frank Liu

JavaScript

const arr = [null]
const y = arr.filter(Boolean)
console.log(y)