Daniel Levy
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!) :)

    Daniel Levy

    Written by

    I talk to the machines. #NodeJS, my spirit animal #Python, my calculator #Rust, my cardio Not a 10x developer; A 3.5x, solid 4x developer, even on a bad day