Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Sea.util.fixnilSub

From WoW Classic Wiki

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])