Is there a function that can replace a row in a row once with a specific index? Example:
var string1="my text is my text"; var string2="my"; string1.replaceAt(string2,"your",10);
and the final result will be "my text is your text", or:
var string1="my text is my text"; var string2="my"; string1.replaceAt(string2,"your",0);
and in this case the result will be "your text is my text."
javascript jquery algorithm
joe-tom
source share