diff --git a/website/docs/language/functions/compact.mdx b/website/docs/language/functions/compact.mdx index b76d0e811b..92321d62d6 100644 --- a/website/docs/language/functions/compact.mdx +++ b/website/docs/language/functions/compact.mdx @@ -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",