From f395efdd8334f9db8757d6a6e20ece4579da46b6 Mon Sep 17 00:00:00 2001 From: Jim Wisniewski Date: Wed, 1 Mar 2023 17:34:33 -0500 Subject: [PATCH] Update documentation for compact function --- website/docs/language/functions/compact.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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",