ARRAY_COMPACT
Description
Removes all null values from an array, returning a new array without nulls.
Parameters
- array:
array<T>- The input array
Returns
array<T>- A new array with all null elements removed- Returns an empty array
[]if all elements in the array are null or the array is empty
