---
title: "Discussion on \"How to use filter() Array with JavaScript\" | Hashnode"
description: "Discussion on \"How to use filter() Array with JavaScript\". Recently I've found out about filtering array using type guards,\nsuch as Number or Boolean and I thought it would be good to\nwrite a small post about it.\n\nI've posted a tweet about this, which contain a really neat trick in my opinion.\nLet's do this...."
url: "https://hashnode.com/posts/how-to-use-filter-array-with-javascript/6022420e281265375d643e40"
---

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

Discussion

# [How to use filter() Array with JavaScript](https://h.telmo.is/how-to-use-filter-array-with-javascript?utm_source=hashnode&utm_medium=feed)

Recently I've found out about filtering array using type guards, such as Number or Boolean and I thought it would be good to write a small post about it. I've posted a tweet about this, which contain a really neat trick in my opinion. Let's do this....

Feb 9, 2021 · 4 min read · h.telmo.is  
Read the article

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

## Written by

[Telmo Goncalves](https://hashnode.com/@telmo)

@telmo · Portugal

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

Developer who can design.

I've been a developer and designer for well over a decade. I write about JavaScript, React, Tailwind, Next.js and much more.

## Responses 1

Markdown supported · ⌘↵ to post

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Feb 9, 2021](https://hashnode.com/posts/how-to-use-filter-array-with-javascript/6022420e281265375d643e40/comment/60225382281265375d644161)

Great stuff as always, [Telmo Goncalves](https://hashnode.com/@telmo)! 😊
