Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b13c320

Browse files
Merge pull request #299 from ckpinguin/patch-1
Update README.md
2 parents 4169096 + 4e4df97 commit b13c320

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@
11071107
Let's take an example of adding function with memoization,
11081108

11091109
```javascript
1110-
const memoizAddition = () => {
1110+
const memoizeAddition = () => {
11111111
let cache = {};
11121112
return (value) => {
11131113
if (value in cache) {
@@ -1121,8 +1121,8 @@
11211121
}
11221122
};
11231123
};
1124-
// returned function from memoizAddition
1125-
const addition = memoizAddition();
1124+
// returned function from memoizeAddition
1125+
const addition = memoizeAddition();
11261126
console.log(addition(20)); //output: 40 calculated
11271127
console.log(addition(20)); //output: 40 cached
11281128
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /