Sea.util.fixnilSub
From WoW Classic Wiki
More actions
This article is a part of the documentation of the Sea function library
-- -- fixnilsub (sub, ... ) -- -- replaces nils with a substitute -- -- fixnilSub = function(sub, ... ) for i=1, arg.n, 1 do if(not arg[i]) then arg[i] = sub; end end return arg; end;
Originally coded by Thott ([email protected])