0

I been trying to implement a text processor in JavaScript that can handle 4 different types of operations: append, backspace, undo, redo.
The input for this text processor is an array of arraries of a single element or tuples. For example:
const input = [['APPEND', 'Hey'], ['APPEND', ' there'],...