4 ms·
Hey, do you have more documentation on how vanilla Javascript handles array transformations? As an example: array.filter(f => true).map(f => f); My understa
by bunnyfoofoo 5y ago
Hey, do you have more documentation on how vanilla Javascript handles array transformations? As an example:
array.filter(f => true).map(f => f);
My understanding is that filter creates a new array, then maps that new array to another new array in final step.
Does lodash do something differently? I'm not seeing anything in documentation for _.chain that says it does something differently.
- eurasiantiger 5y agoIt’s best to avoid _.chain, see https://medium.com/bootstart/why-using-chain-is-a-mistake-9bc1f80d51ba https://medium.com/bootstart/why-using-chain-is-a-mistake-9b...