/object/enumerable
stdCreates a 1 to 1 mapping of the given values as an object.
Type signature
(...xs: string[]) => object
Examples
enumerable("TEST", "X", "Y");
// ⇒ { TEST: 'TEST', X: 'X', Y: 'Y' }
Try in REPL
Questions
- How to create an object of the same keys and values?