History of 2022-12-12 Debugging chained operations in Lodash

2024-04-26
07:02 UTC Revision 2 . . . . mborkfix a typo (minor)
2022-12-12
10:39 UTC Revision 1 . . . . mborkI use Lodash in some of my projects. One of the nice features of Lodash is the chaining concept. If you have an object (often an array) which you want to transform usign a series of operations like map, filter etc. Now this is great – if it works. But what if it doesn’t and the result is completely unexpected? It would be nice if you were able to see the intermediate results of the chained operations without, so to speak, breaking the chain… It turns out you can!