You-Dont-Need-Lodash-Underscore
You-Dont-Need-Lodash-Underscore copied to clipboard
_.invert
Here is a suggestion for _.invert
const a = { b:"C" , d: "E"};
const invertA = Object.entries(a).reduce((c,[k,v])=> { c[v]=k; return c; }, {});
// {C:"b", E:"d" }