~/forever/addon-api/function/table.removeunordered
table.removeunordered
documented function · LuaTableExtensions
table.removeunordered(table, index?) : valueRemoves the value at the specified integer index by replacing it with the last value in the array and shortening the array by one element. The order of values in the array is not preserved.
──ARGUMENTS
- table
- table (The table from which to remove a value.)
- index
- number, optional (The integer index of the value to remove. If omitted, the last value is removed.)
──RETURNS
- value
- any, optional (The removed value, or nil if the index is outside the array bounds.)
──DETAILS
- Secret Arguments
- AllowedWhenUntainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.