---
title: "Discussion on \"Using the methods some and every to avoid old loops\" | Hashnode"
description: "Discussion on \"Using the methods some and every to avoid old loops\". Photo by Daniel Fazio on Unsplash\nUsually, 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..."
url: "https://hashnode.com/posts/using-the-methods-some-and-every-to-avoid-old-loops/5fc605550a072175ef2d054d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using the methods some and every to avoid old loops](https://rxluz.hashnode.dev/using-the-methods-some-and-every-to-avoid-old-loops?utm_source=hashnode&utm_medium=feed)

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...

Dec 1, 2020 · 4 min read · rxluz.hashnode.dev  
Read the article

-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Ricardo Luz](https://hashnode.com/@rxluz)

@rxluz · Dublin, Ireland

  
[View profile](https://hashnode.com/@rxluz)

Senior Software engineer. @udemy Writer, ECMAScript addict, React, NodeJS, coffee enthusiast.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
