Skip to content

Instantly share code, notes, and snippets.

View fatihturgut's full-sized avatar

Fatih Turgut fatihturgut

View GitHub Profile
fatihturgut / parameterizedString.js
Last active July 9, 2019 16:50
Parameterize String
* @example parameterizedString("my name is %s1 and surname is %s2", "John", "Doe");
* @return "my name is John and surname is Doe"
* @firstArgument {String} like "my name is %s1 and surname is %s2"
* @otherArguments {String | Number}
* @returns {String}
export const parameterizedString = (...args) => {
const str = args[0];