Skip to content

Instantly share code, notes, and snippets.

@shettypuneeth
Created May 14, 2017 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shettypuneeth/1b14213a0c6205b5fb3a95262e428a66 to your computer and use it in GitHub Desktop.
Save shettypuneeth/1b14213a0c6205b5fb3a95262e428a66 to your computer and use it in GitHub Desktop.
Sample gist
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