Removes empty items from an array

Parameters

value Array (required) - an array of items

Returns

Array

Examples

COMPACT([null, 1, undefined, null, 2, 3])

// returns [1,2,3]

Did this page help you?