Created
December 30, 2017 22:21
-
-
Save ruffle1986/99299b26e287c00475e16728f1cd66ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const multiply = (a, b) => a * b; | |
const logger = (wrapped) => (...args) => { | |
const result = wrapped(...args); | |
console.log('the result is ', result); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment