JSFiddle - React, Tailwind, and code Playground

by gcjnst

JavaScript

var o = {
	a: 1,
	b: 2,
	c: 3
};

alert(o.filter(x => x));