Created
August 1, 2017 02:37
-
-
Save haocong/106d07ed3a29fa22d2908dc77dc6ba8d to your computer and use it in GitHub Desktop.
tapping-for-quick-debugging
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
function tap(x, fn = x => x) { | |
console.log(fn(x)); | |
return x; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment