-1
rated 0 times
[
1]
[
2]
/ answers: 1 / hits: 44508
/ 13 Years ago, tue, may 31, 2011, 12:00:00
var str = This is a string;
var thing = str.replace(string,thing);
console.log( str )
>> This is a string
console.log( thing )
>> This is a thing
Is there another method I can use, besides replace, that will alter the string in place without giving me a new string object?
More From » string