Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 750d974

Browse files
committed
Fixes two typos.
1 parent 144a0d0 commit 750d974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

function-patterns/memoization.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
var myFunc = function (param) {
1616
if (!myFunc.cache[param]) {
1717
var result = {};
18-
// ... expsensive operation ...
18+
// ... expensive operation ...
1919
myFunc.cache[param] = result;
2020
}
2121
return myFunc.cache[param];
@@ -31,7 +31,7 @@
3131
var myFunc = function (param) {
3232
if (!myFunc.cache.hasOwnProperty(param)) {
3333
var result = {};
34-
// ... expsensive operation ...
34+
// ... expensive operation ...
3535
myFunc.cache[param] = result;
3636
}
3737
return myFunc.cache[param];

0 commit comments

Comments
 (0)