Great post, Leira! I love seeing more people use styles in their logging. I'd like to add one more to your list, console.tap. It's one of my own creation, made to solve the fact that console.log returns undefined. Instead tap returns the first value you passed in. Imagine trying to log the result of the filter:
Great post, Leira! I love seeing more people use styles in their logging. I'd like to add one more to your list, console.tap. It's one of my own creation, made to solve the fact that
console.log
returns undefined. Insteadtap
returns the first value you passed in. Imagine trying tolog
the result of thefilter
:I will definitely check it out. Thank you!
This is fascinating and addresses a frequently encountered awkwardness of console.log, thank you! I'm going to start using this a lot