---
title: "Discussion on \"Some, every and indexOf methods on arrays\" | Hashnode"
description: "Discussion on \"Some, every and indexOf methods on arrays\". Introduced in ES5, the only difference between Array.prototype.some() and Array.prototype.every() is the following:\n\nsome() is used to check if at least one of the elements of the array passes the test implemented by the provided function;\nevery() is..."
url: "https://hashnode.com/posts/some-every-and-indexof-methods-on-arrays/61b819e40059f90a57a57cf0"
---

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

Discussion

# [Some, every and indexOf methods on arrays](https://plasebo.hashnode.dev/some-every-and-indexof-methods-on-arrays?utm_source=hashnode&utm_medium=feed)

Introduced in ES5, the only difference between Array.prototype.some() and Array.prototype.every() is the following: some() is used to check if at least one of the elements of the array passes the test implemented by the provided function; every() is...

Dec 14, 2021 · 3 min read · plasebo.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)
-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#array](https://hashnode.com/tag/array)
-   [#arrays](https://hashnode.com/tag/arrays)

## Written by

[Shane Plasebo](https://hashnode.com/@Plasebo)

@Plasebo · Moka, Mauritius

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
