Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

Sea.util.fixnilSub

From WoWWiki

Jump to: navigation, search

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 (thott@thottbot.com)

Rate this article:
Share this article: