Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Fatih Turgut fatihturgut

:octocat:
View GitHub Profile
View parameterizedString.js
/***
* @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];