Using the methods some and every to avoid old loops
Photo by Daniel Fazio on Unsplash
Usually, when we want to create loops, we'd prefer to use modern JS to do that with a nicer syntax than the old for's, however when some condition is matched, and we need to stop the loop in the middle we still depen...
rxluz.hashnode.dev4 min read