Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
atum47
9 months ago
|
parent
|
context
|
favorite
| on:
Writing a tiny undo/redo stack in JavaScript
I did something similar the other day but I end up using a circular buffer of fixed size. Everytime you push a new state the oldest state gets discarded.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: