birecord
v0.1.1
Published
Bi-directional record in type-safe way
Downloads
690,734
Readme
birecord
Bi-directional record in type-safe way
How to use
npm install birecord
import birecord from "birecord";
// import birecord_for_deno from "https://deno.land/x/birecord/mod.ts";
const x = birecord({ foo: 123, bar: 456, baz: 789 });
const test1 = x.get("foo"); // 123
const test2 = x.get(123); // "foo"