---
title: "Discussion on \"Filter Method in JavaScript\" | Hashnode"
description: "Discussion on \"Filter Method in JavaScript\". JavaScript Nuggets\nfilter method is used to remove unwanted things from an array.\nlike map, it returns a new array with elements removed.\nwe pass a function in the filter method which filters according to the task assigned to the function.\nconst card..."
url: "https://hashnode.com/posts/filter-method-in-javascript/642de41b11430efcacf8bb4b"
---

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

Discussion

# [Filter Method in JavaScript](https://codecrash.com/filter-method-in-javascript?utm_source=hashnode&utm_medium=feed)

JavaScript Nuggets filter method is used to remove unwanted things from an array. like map, it returns a new array with elements removed. we pass a function in the filter method which filters according to the task assigned to the function. const card...

Apr 5, 2023 · 3 min read · codecrash.com  
Read the article

-   [#array-javascript-array-methods-map-filter-foreach](https://hashnode.com/tag/array-javascript-array-methods-map-filter-foreach)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-filter](https://hashnode.com/tag/javascript-filter)

## Written by

[MadCoding7588](https://hashnode.com/@CodingMaster)

@CodingMaster · India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
