JSFiddle - React, Tailwind, and code Playground

by irinablue

JavaScript

const e = {
    "draft.exists": [
        "Event already has a draft event"
    ],
    "event.exists": [
        "Event already has a draft event 2"
    ]
};
console.log(Object.values(e));

for (const item in Object.values(e)) {
    //console.log(item);
}