We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4169096 + 4e4df97 commit b13c320Copy full SHA for b13c320
README.md
@@ -1107,7 +1107,7 @@
1107
Let's take an example of adding function with memoization,
1108
1109
```javascript
1110
- const memoizAddition = () => {
+ const memoizeAddition = () => {
1111
let cache = {};
1112
return (value) => {
1113
if (value in cache) {
@@ -1121,8 +1121,8 @@
1121
}
1122
};
1123
1124
- // returned function from memoizAddition
1125
- const addition = memoizAddition();
+ // returned function from memoizeAddition
+ const addition = memoizeAddition();
1126
console.log(addition(20)); //output: 40 calculated
1127
console.log(addition(20)); //output: 40 cached
1128
```
0 commit comments