Class: ReplaceTokens maps.nyc.gov

nyc.ReplaceTokens

new ReplaceTokens()

Class to provide string replacement functionality
Source:

Methods

replace(str, values) → {string}

Replace tokens in a string with values from a provided object
Parameters:
Name Type Description
str string String with tokens to be replaced
values Object.<string, string> Values token for replacement
Source:
Returns:
String with replacement value substitution
Type
string