Update documentation for compact function

pull/32766/head
Jim Wisniewski 3 years ago
parent 76b34e891c
commit f395efdd83
No known key found for this signature in database
GPG Key ID: 88FCEA8D986E4990

@ -1,17 +1,17 @@
---
page_title: compact - Functions - Configuration Language
description: The compact function removes empty string elements from a list.
description: The compact function removes null or empty string elements from a list.
---
# `compact` Function
`compact` takes a list of strings and returns a new list with any empty string
`compact` takes a list of strings and returns a new list with any null or empty string
elements removed.
## Examples
```
> compact(["a", "", "b", "c"])
> compact(["a", "", "b", null, "c"])
[
"a",
"b",

Loading…
Cancel
Save