JSFiddle - React, Tailwind, and code Playground JavaScript var obj = { foo: 'bar', baz: 42 }; console.log(Object.values(obj)); // ['bar', 42]