mirror of
https://github.com/1bardesign/batteries.git
synced 2024-12-01 17:24:34 +00:00
[modified] minor refactor of how tablex.clear
is or isn't initialised as needed
This commit is contained in:
parent
c2a9d39bcf
commit
bc7754ae0b
@ -247,10 +247,7 @@ function tablex.dedupe(t)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--(might already exist depending on luajit)
|
--(might already exist depending on luajit)
|
||||||
if table.clear then
|
if not tablex.clear then
|
||||||
--import from global if it exists
|
|
||||||
tablex.clear = table.clear
|
|
||||||
else
|
|
||||||
--remove all values from a table
|
--remove all values from a table
|
||||||
--useful when multiple references are being held
|
--useful when multiple references are being held
|
||||||
--so you cannot just create a new table
|
--so you cannot just create a new table
|
||||||
|
Loading…
Reference in New Issue
Block a user