Created
May 21, 2020 10:42
-
-
Save jLouzado/6d8f8d972452f03fd1a12a8340484c84 to your computer and use it in GitHub Desktop.
ramda-debugging-helpers
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
export const traceOutput = (fn: any, message: string = '') => ( | |
...args: unknown[] | |
) => { | |
const result = fn(...args) | |
console.log(typeof fn) | |
console.log(message, result) | |
return result | |
} | |
export const traceOutput = (fn: any, message: string = '') => ( | |
...args: unknown[] | |
) => { | |
console.log(typeof fn) | |
const result = fn(...args) | |
console.log(message, result) | |
return result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment