Inverts the key-value pairs of the object, without mutating it
invert({ name: "John", age: 20 }); // { 20: "age", John: "name" }
Generated using TypeDoc
Inverts the key-value pairs of the object, without mutating it
Example