Skip to content

table.filterempty

starkos edited this page Apr 10, 2021 · 3 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


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.

Clone this wiki locally