We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144a0d0 commit 750d974Copy full SHA for 750d974
function-patterns/memoization.html
@@ -15,7 +15,7 @@
15
var myFunc = function (param) {
16
if (!myFunc.cache[param]) {
17
var result = {};
18
- // ... expsensive operation ...
+ // ... expensive operation ...
19
myFunc.cache[param] = result;
20
}
21
return myFunc.cache[param];
@@ -31,7 +31,7 @@
31
32
if (!myFunc.cache.hasOwnProperty(param)) {
33
34
35
36
37
0 commit comments