JSFiddle - React, Tailwind, and code Playground

by rmadhuram

JavaScript

var list = {
    1: [{}, {}],
    2: [{}, {}]
};

console.log(list);

for (var x in list) {
    delete list[x];
}

console.log(list);