WoW:API wipe

Revision as of 06:23, 15 December 2008 by WoWWiki>Rolandius (bolded title of article; Cleanup)

Lua/Libshortcut


Wipes a table of all contents.

table = table.wipe(table)

Arguments

table
Table - The table to be cleared.

Returns

table
Table - The empty table.

Example

local tab = {}
tab.Hello = "Goodbye"
print(tab.Hello) -- print "Goodbye"
tab = table.wipe(tab)
print(tab.Hello) -- print nil


Template:LUA