June 20, 2019
Here’s how you convert Imperative -> Functional!
Note: If you only care about one of the branches of the if condition, then use filter. Because you’re not going to get access to the false case.
Written by Aniket Kadam - building useful things. Follow me on Twitter