---
title: "Discussion on \"10 JavaScript Array methods to simplify your code.\" | Hashnode"
description: "Discussion on \"10 JavaScript Array methods to simplify your code.\". Let’s start!\n1. filter()\nThe filter() method creates a new array with all elements that pass the test implemented by the provided function.\n\n2. forEach()\nThe forEach() method executes a provided function once for each array element.\n\n3. some()\nThe so..."
url: "https://hashnode.com/posts/10-javascript-array-methods-to-simplify-your-code/5fc49dc1bc24037614df8936"
---

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

Discussion

# [10 JavaScript Array methods to simplify your code.](https://denic.hashnode.dev/10-javascript-array-methods-to-simplify-your-code?utm_source=hashnode&utm_medium=feed)

Let’s start! 1. filter() The filter() method creates a new array with all elements that pass the test implemented by the provided function. 2. forEach() The forEach() method executes a provided function once for each array element. 3. some() The so...

Nov 30, 2020 · 3 min read · denic.hashnode.dev  
Updated Dec 8, 2020  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Marko Denic](https://hashnode.com/@denic)

@denic

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

Software Engineer.

Software Engineer.

## Responses 4

Markdown supported · ⌘↵ to post

[Siddharth Rout](https://hashnode.com/@routsiddharth0298)

[Dec 6, 2020](https://hashnode.com/posts/10-javascript-array-methods-to-simplify-your-code/5fc49dc1bc24037614df8936/comment/5fcc6246685f4f01c470f883)

Where do you get your cover images from? They look great!

[dev alan](https://hashnode.com/@devalan)

[Dec 8, 2020](https://hashnode.com/posts/10-javascript-array-methods-to-simplify-your-code/5fc49dc1bc24037614df8936/comment/5fcc6246685f4f01c470f883#reply-5fcf8a1fd639be20b2f02ac6)

✋ also waiting

[Shahriar Shakil](https://hashnode.com/@shahriarshakil)

[Dec 5, 2020](https://hashnode.com/posts/10-javascript-array-methods-to-simplify-your-code/5fc49dc1bc24037614df8936/comment/5fcbd2fb685f4f01c470f3e9)

Very important Information. Thanks

[Marko Denic](https://hashnode.com/@denic)

[Dec 5, 2020](https://hashnode.com/posts/10-javascript-array-methods-to-simplify-your-code/5fc49dc1bc24037614df8936/comment/5fcbd2fb685f4f01c470f3e9#reply-5fcbd781ef5f84019de79327)

Thanks a lot Shahriar!

[Luísa Ribeiro Bezerra](https://hashnode.com/@luisarbezerra)

[Nov 30, 2020](https://hashnode.com/posts/10-javascript-array-methods-to-simplify-your-code/5fc49dc1bc24037614df8936/comment/5fc52ae8bc24037614df98c3)

Nice! :)

[Marko Denic](https://hashnode.com/@denic)

[Nov 30, 2020](https://hashnode.com/posts/10-javascript-array-methods-to-simplify-your-code/5fc49dc1bc24037614df8936/comment/5fc52ae8bc24037614df98c3#reply-5fc52d680a072175ef2cf8e3)

Thanks a lot!

[Josias Aurel](https://hashnode.com/@JosiasAurel)

[Nov 30, 2020](https://hashnode.com/posts/10-javascript-array-methods-to-simplify-your-code/5fc49dc1bc24037614df8936/comment/5fc51f36bc24037614df9741)

Very useful post. Thanks

[Marko Denic](https://hashnode.com/@denic)

[Nov 30, 2020](https://hashnode.com/posts/10-javascript-array-methods-to-simplify-your-code/5fc49dc1bc24037614df8936/comment/5fc51f36bc24037614df9741#reply-5fc5249a0a072175ef2cf7ca)

Thank you [Josias](https://hashnode.com/@JosiasAurel).
