Building & Editing
.append(...parts) → string
.append(...parts) → string.prepend(...parts) → string
.prepend(...parts) → stringlog "ab".append("cd", "ef") // "abcdef"
log "ab".prepend("XY") // "XYab".insert(index, str) → string
.insert(index, str) → stringlog "abc".insert(2, "X") // "aXbc".replace(old, new) → string
.replace(old, new) → string.replaceFirst(old, new) → string
.replaceFirst(old, new) → stringlog "Hello".replace("l", "L") // "HeLLo"
log "Hello".replaceFirst("l", "L") // "HeLlo".stripStart(prefix) → string
.stripStart(prefix) → string.stripEnd(suffix) → string
.stripEnd(suffix) → string.padStart(char, length) → string
.padStart(char, length) → string.padEnd(char, length) → string
.padEnd(char, length) → stringLast updated