---
title: "Discussion on \"JavaScript some() method\" | Hashnode"
description: "Discussion on \"JavaScript some() method\". Did you ever need to know if one of the elements in an array passed a test?\nThis is where the some() method comes in handy.\nLet's keep using our product array, but let's add a discounted product.\nWe then want to test if some of our products are disco..."
url: "https://hashnode.com/posts/javascript-some-method/5fbc94cbec43af1ba6093dba"
---

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

Discussion

# [JavaScript some() method](https://h.daily-dev-tips.com/javascript-some-method?utm_source=hashnode&utm_medium=feed)

Did you ever need to know if one of the elements in an array passed a test? This is where the some() method comes in handy. Let's keep using our product array, but let's add a discounted product. We then want to test if some of our products are disco...

Nov 24, 2020 · 3 min read · h.daily-dev-tips.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#programming](https://hashnode.com/tag/programming)
-   [#general-advice](https://hashnode.com/tag/general-advice)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

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

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses 2

Markdown supported · ⌘↵ to post

[Daniel Augusto De Abreu Mascena](https://hashnode.com/@daam)

[Nov 24, 2020](https://hashnode.com/posts/javascript-some-method/5fbc94cbec43af1ba6093dba/comment/5fbcebe6ec43af1ba609470f)

Thanks for sharing but your last example returns an incorrect result:

```
users[2/*Billy*/].age < 18
// returns false
```

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 24, 2020](https://hashnode.com/posts/javascript-some-method/5fbc94cbec43af1ba6093dba/comment/5fbcebe6ec43af1ba609470f#reply-5fbcf30530fc2d1b859e33ff)

Ah yes, you were paying attention! You are right, should have been <= ! Updating the post now

[Dany Tulumidis](https://hashnode.com/@DanyTulumidis)

[Nov 24, 2020](https://hashnode.com/posts/javascript-some-method/5fbc94cbec43af1ba6093dba/comment/5fbcd47430fc2d1b859e30e1)

thank you for this series! JS Array methods are awesome and probably my most used integrated methods from JS :D

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 24, 2020](https://hashnode.com/posts/javascript-some-method/5fbc94cbec43af1ba6093dba/comment/5fbcd47430fc2d1b859e30e1#reply-5fbcf31830fc2d1b859e3403)

They are sooo cool, learning so much every day about just how powerful they are!
