We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c561bb3 commit bbae381Copy full SHA for bbae381
JavaScript/3-callback.js
@@ -27,9 +27,8 @@ const wrapFunction = fn => {
27
28
const cloneInterface = anInterface => {
29
const clone = {};
30
- let key, fn;
31
- for (key in anInterface) {
32
- fn = anInterface[key];
+ for (const key in anInterface) {
+ const fn = anInterface[key];
33
clone[key] = wrapFunction(fn);
34
}
35
return clone;
JavaScript/4-wrap-api.js
@@ -14,9 +14,8 @@ const wrapFunction = fn => {
14
15
16
17
18
19
20
21
22
0 commit comments