Created
May 14, 2017 05:56
-
-
Save shettypuneeth/1b14213a0c6205b5fb3a95262e428a66 to your computer and use it in GitHub Desktop.
Sample gist
This file contains 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 withLogs = (fn) => (a, b) => { | |
console.log(a, b); | |
return fn(a, b); | |
} | |
const add = withLogs((a, b) => a + b); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment