@denorg/invert-kv
v2.0.0
Published
Invert the key-value pairs in an object in Deno. This is a port of [sindresorhus/invert-kv](https://github.com/sindresorhus/invert-kv).
Downloads
18
Readme
🙃 Invert KV
Invert the key-value pairs in an object in Deno. This is a port of sindresorhus/invert-kv.
import { invert } from "https://deno.land/x/invert_kv/mod.ts";
const obj = { hello: "world" };
const result = invert(); // { world: "hello" }👩💻 Development
Run tests:
deno test📄 License
MIT © Denorg
