Skip to content

robertmorgan/replace-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

replace-tokens

Replaces tokens in a string using key value pairs.

NB: Utilises [Array.prototype.reduce()](https://mzl.la/1a2wTEJ). If you plan on having this code work with IE9 or below, please include your own polyfill within your application for this function.

About

Replaces tokens in a string using key value pairs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages