title: Does javascript have a method to replace part of a string without creating a new string?
body: <pre><code>var str = "This is a string";
  var thing = str.replace("string","thing");
  
  console.log( str )
  &gt;&gt; "This is a string" 
  
  console.log( thing )
  &gt;&gt; "This is a thing" 
  </code></pre>
  
  <p>Is there another method I can use, besides replace, that will alter the string in place without giving me a new string object?</p>