Deleting Empty in Array

Guys, please help me how can i delete empty content in array. I want to remove the [] on the array.

   [[] [{3 Users 1 a fa-user /Users 2} {7 Profile 0 a fa-male /Profile 2}]]

Thanks

You can’t remove anything from an array, as arrays have fixed sizes.

But maybe you mean a slice?

If so, an example of how to use append to remove the item with index n from a slice is available at the playground.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.