Skip to main content

table.filterempty

Removes empty strings or nil values from an array, in place.

table.filterempty(arr)

Parameters

arr is the array of values to be filtered.

Return Value

Returns arr with any empty strings or nil values removed.

Availability

Premake 5.0 or later.