String-interpolation🧵
Last updated
Was this helpful?
Last updated
Was this helpful?
String Interpolation is a common function for interpolating variables in strings.
yarn add @common-utilities/string-interpolation -D
stringInterpolation('This string has #{dynamicData}', [{ dynamicData: 'a knot in it' }])
// => 'This string has a knot in it'
No cruft. No bloat. No dependencies.
Simple, typed, functional, documented, and tested javascript utility functions.
View other common utilities on Github.