JSFiddle - React, Tailwind, and code Playground

by Mubasshir Pawle

JavaScript

var a = ['a', null, '', 'c', 'd'];
a = a.filter(function(e) {
  return e;
});
alert(a.join(','));