Amy Blankenship
Apr 11, 2023

--

Thanks for stopping by!

Sorry it wasn't clear I'm not in favor of removing the element from the middle of the loop.

I get your thoughts about regular loops vs. array methods, but over time I've come to prefer the functional approach, due to its composability. I also now like the isolated closure (when it was difficult to step into I hated it). Because of the composability issue, I ask my team to standardize on the functional approach where possible, so we don't have a lot of switching back and forth among different syntaxes.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (1)