---
title: "Discussion on \"Getting rid of falsy values from arrays: the super simple guide\" | Hashnode"
description: "Discussion on \"Getting rid of falsy values from arrays: the super simple guide\". Arrays are essential data structures used in JavaScript. It lets you store sequences of values. With array methods, you can transform and manipulate values"
url: "https://hashnode.com/posts/getting-rid-of-falsy-values-from-arrays-the-super-simple-guide/641e19ed32ea565017652899"
---

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

Discussion

# [Getting rid of falsy values from arrays: the super simple guide](https://ridwanabiola.hashnode.dev/getting-rid-of-falsy-values-from-arrays-the-super-simple-guide?utm_source=hashnode&utm_medium=feed)

Arrays are essential data structures used in JavaScript. It lets you store sequences of values. With array methods, you can transform and manipulate values

Mar 24, 2023 · 3 min read · ridwanabiola.hashnode.dev  
Read the article

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

## Written by

[Ridwan Abiola](https://hashnode.com/@thisbeardedone)

@thisbeardedone

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

Front Developer

## Responses 2

Markdown supported · ⌘↵ to post

[Shubh Sharma](https://hashnode.com/@shubhsharma)

[Mar 25, 2023](https://hashnode.com/posts/getting-rid-of-falsy-values-from-arrays-the-super-simple-guide/641e19ed32ea565017652899/comment/641ea5a9ecc310467c901d4e)

Good one 🔥

[Anthony Fung](https://hashnode.com/@anthonyf)

[Mar 24, 2023](https://hashnode.com/posts/getting-rid-of-falsy-values-from-arrays-the-super-simple-guide/641e19ed32ea565017652899/comment/641e234d05c482464c90a850)

Good solution!

You can do the same by relying on the truthiness of a value too, e.g. `myArray.filter(n => n);`. Something to be careful of is that `0` is considered a falsy value.
