Given a string with indexed tokens, performs a replacement with the tokens in the provided list. Example:
substitute('{0}, {1}, and {2}', 'apples', 'bananas', 'pears') // 'apples, bananas, and pears' Copy
substitute('{0}, {1}, and {2}', 'apples', 'bananas', 'pears') // 'apples, bananas, and pears'
Rest
Given a string with indexed tokens, performs a replacement with the tokens in the provided list. Example: