Originally posted at michaelzanggl.com. Subscribe to my newsletter to never miss out on new content.
Inspired by Laravel's tap helper, I recentl...
For further actions, you may consider blocking this person and/or reporting abuse
This only works for mutable operations on data structures. Image you use the filter function on the array (or map or reduce).
Yup, unnecessary in such cases.