Browsing StarfallEx's section
← Back to ACE
💬

Community answer

Collected from the ACE community Discord archive around 2024-01-27. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

table.remove doesn't work on keyed tables

⭐ StarfallUpdated 2 days ago•0 views
table.remove only works on the array part of a table - for hash keys use data[key] = nil. Also don't remove while iterating with pairs; collect keys first or se…

Why doesn't table.remove() remove entries from my keyed data table

table.remove only works on the array part of a table - for hash keys use data[key] = nil. Also don't remove while iterating with pairs; collect keys first or set to nil directly.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.