Skip to content

Commit

Permalink
Document filter_empty modifier
Browse files Browse the repository at this point in the history
Closes #1495.
  • Loading branch information
duncanmcclean committed Oct 23, 2024
1 parent 77e57e9 commit 86d38f6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions content/collections/modifiers/filter_empty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
id: a01e28a5-7c59-436c-8137-98e9481631ba
modifier_types:
- array
title: 'Filter Empty'
---
Filters out null values from an array.

```yaml
favorite_things:
- pizza
- null
- ice cream
```
```antlers
{{ favorite_things | filter_empty }}
```

```output
pizza
ice cream
```

0 comments on commit 86d38f6

Please sign in to comment.