const Dict1 = { "one": 1, "two": 2, "three": 3 }; const Dict2 = {}; for (const [key, value] of Object.entries(Dict1)) { Dict2[value] = key; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)