1 parent 94e1f00 commit 316f064Copy full SHA for 316f064
1 file changed
README.md
@@ -30,6 +30,8 @@ pnpm add multikeys
30
## Usage examples
31
32
```javascript
33
+import { MKMap } from "multikeys";
34
+
35
const mkMap = new MKMap();
36
37
mkMap.set([1, 2, 3], "foo");
@@ -56,7 +58,7 @@ mkSet.has([obj, 1]); // => true
56
58
Using MKMap we could simply add memoization to function with a variable number of arguments:
57
59
60
-const { MKMap } = require("multikeys");
61
62
63
function memoize(func) {
64
0 commit comments