WoW:API wipe

From AddOn Studio
Revision as of 06:23, 15 December 2008 by WoWWiki>Rolandius (bolded title of article; Cleanup)
Jump to navigation Jump to search

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