Demo
0
/
History (limited to 10 records for demo)
Usage
StateHistory
tracks a getter's return value, logging each change into an array. A setter is also
required to use the undo
and redo
functions.
Besides log
, the returned object contains undo
and redo
functionality.