File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
1-js/06-advanced-functions/11-currying-partials Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -195,18 +195,18 @@ Now we can easily make a convenience function for current logs:
195
195
196
196
``` js
197
197
// currentLog will be the partial of log with fixed first argument
198
- let currentLog = log (new Date ());
198
+ let logNow = log (new Date ());
199
199
200
200
// use it
201
- currentLog (" INFO" , " message" ); // [HH:mm] INFO message
201
+ logNow (" INFO" , " message" ); // [HH:mm] INFO message
202
202
```
203
203
204
204
And here's a convenience function for current debug messages:
205
205
206
206
``` js
207
- let todayDebug = currentLog (" DEBUG" );
207
+ let debugNow = logNow (" DEBUG" );
208
208
209
- currentLog (" message" ); // [HH:mm] DEBUG message
209
+ debugNow (" message" ); // [HH:mm] DEBUG message
210
210
```
211
211
212
212
So:
You can’t perform that action at this time.
0 commit comments