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 a4f1afd

Browse files
authored
Merge pull request #3248 from Victor-Nikliaiev/patch-1
For the completeness of example.
2 parents 083de40 + 434e637 commit a4f1afd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎1-js/05-data-types/08-weakmap-weakset/article.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ function process(obj) {
184184
let result = /* calculations of the result for */ obj;
185185

186186
cache.set(obj, result);
187+
return result;
187188
}
188189

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

225226
cache.set(obj, result);
227+
return result;
226228
}
227229

228230
return cache.get(obj);

0 commit comments

Comments
(0)

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