Integrated Application Platform › Forums › General › [SOLVED]A string composing function to share › Re: Re: A string composing function to share
August 24, 2014 at 7:19 pm
#1079
Keymaster
When you use @args the arguments are put in an object for you, so you can call it with just regular arguments.
function (@args)
{
return args[0].Replace(“%[0-9]+”, { args[Number(it[1..])] })
}