DEV Community

Discussion on: Stop using for loops, here are other cool options

Collapse
 
itismadhavan profile image
Madhavan Nagarajan

I can understand the point you are making here. I was very sceptical like you that these functions cannot work in real-time coding practice but it turns out that I'm wrong I've used these functions and replaced many of the for loops in the older code bases and that worked alot for my team. I also agree there are cases where you cannot use these methods but when you want to break a loop conditionally i would use a while over for and that's my idea . I would encourage you to try out this in your workplace if you need any help I'm happy to help :)