Skip to content

Instantly share code, notes, and snippets.

@wayneseymour
Created September 7, 2020 20:58
Show Gist options
  • Save wayneseymour/5d26da8cb8d8482a5de8f83f4efc10f5 to your computer and use it in GitHub Desktop.
Save wayneseymour/5d26da8cb8d8482a5de8f83f4efc10f5 to your computer and use it in GitHub Desktop.
Nice little console.log trick I got from DrBoolean
[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