Liquex.Filter.compact

You're seeing just the function compact, go back to Liquex.Filter module for more information.

Specs

compact([any()], map()) :: [any()]

Removes any nil values from an array.

Examples

iex> Liquex.Filter.compact([1, 2, nil, 3], %{})
[1,2,3]

iex> Liquex.Filter.compact([1, 2, 3], %{})
[1,2,3]