The literal-like string value to interpolate.
An object of key/value pairs to replace the tokens.
The interpolated string.
import { interpolateLiteral } from '@untemps/utils/string/interpolateLiteral'const value = 'A ${foo} with ${bar} "wings" and a lot of ${fun}'const tokens = { foo: 'bird', bar: 3, fun: 'dignity'}interpolateLiteral(value, tokens) // A bird with 3 "wings" and a lot of dignity Copy
import { interpolateLiteral } from '@untemps/utils/string/interpolateLiteral'const value = 'A ${foo} with ${bar} "wings" and a lot of ${fun}'const tokens = { foo: 'bird', bar: 3, fun: 'dignity'}interpolateLiteral(value, tokens) // A bird with 3 "wings" and a lot of dignity
The literal-like string value to interpolate.