Jul 29, 2017 · 1 min read
The correct way to ‘break’ from a functional ‘loop’ is to use the .find() method. 99.99999% of the time
Other similarly awesome Array methods: .some(), .none(), .every()
I haven’t written an old-school for loop in years…
Though I’m working on different designs/patterns to avoid hitting the Tail Call/Stack limit trap. Currently FP JS isn’t causing TCO problems for me, (I’m more anxious for native BigDecimal support!) :)
