Skip to content

Commit

Permalink
Merge pull request javascript-tutorial#3248 from Victor-Nikliaiev/pat…
Browse files Browse the repository at this point in the history
…ch-1

For the completeness of example.
  • Loading branch information
iliakan authored Nov 13, 2022
2 parents 083de40 + 434e637 commit a4f1afd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 1-js/05-data-types/08-weakmap-weakset/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ function process(obj) {
let result = /* calculations of the result for */ obj;

cache.set(obj, result);
return result;
}

return cache.get(obj);
Expand Down Expand Up @@ -223,6 +224,7 @@ function process(obj) {
let result = /* calculate the result for */ obj;

cache.set(obj, result);
return result;
}

return cache.get(obj);
Expand Down

0 comments on commit a4f1afd

Please sign in to comment.