JSFiddle - React, Tailwind, and code Playground

by Frank Liu

JavaScript

const x = [undefined, false].filter(Boolean) || true ;

console.log(x)