You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I'm pretty sure that str += "more text" will do a proper append automatically as-is, so it should be pretty fast.

    If you're interested the code is here

    It won't work if the string is referenced elsewhere though:

    var str = "Hello ";
    var foo = str;
    str += "more text"; // It's done a copy in this case.
    
About

Avatar for Gordon @Gordon started