---
title: "Discussion on \"Different between filter() and find() in javascript\" | Hashnode"
description: "Discussion on \"Different between filter() and find() in javascript\". filter() and find() is a javascript method. only use an array. The find() method return a specific one and the filter() method returns more than one.\nfind() method:\nconst x = [12, 12,12,12,12,12, 22, 11, 1112, 221]; const y = x.find(res => res !== 12..."
url: "https://hashnode.com/posts/different-between-filter-and-find-in-javascript/649474bb436c3e362081fc46"
---

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

Discussion

# [Different between filter() and find() in javascript](https://mdahnafarshad.hashnode.dev/different-between-filter-and-find-in-javascript?utm_source=hashnode&utm_medium=feed)

filter() and find() is a javascript method. only use an array. The find() method return a specific one and the filter() method returns more than one. find() method: const x = \[12, 12,12,12,12,12, 22, 11, 1112, 221\]; const y = x.find(res => res !== 12...

Jun 22, 2023 · 1 min read · mdahnafarshad.hashnode.dev  
Read the article

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

## Written by

[md ahnaf arshad](https://hashnode.com/@MdAhnafArshad)

@MdAhnafArshad

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
