The document to modify
The path to the string to modify
The position (as a Cursor or index) to edit. If a cursor is used then the edit happens such that the cursor will now point to the end of the newText, so you can continue to reuse the same cursor for multiple calls to splice.
The number of code units to delete, a positive number deletes N characters after the cursor, a negative number deletes N characters before the cursor.
Optional
newText: stringThe string to insert (if any).
Modify a string