Repository
Current version released
4 years ago
Versions
π 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