Created
September 7, 2020 20:58
-
-
Save wayneseymour/5d26da8cb8d8482a5de8f83f4efc10f5 to your computer and use it in GitHub Desktop.
Nice little console.log trick I got from DrBoolean
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
[1,2,3] | |
.map(x => (console.log(x), x)) // Tiniest "tap" fn...trick from DrBoolean | |
.map(x => x + 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment