Skip to content

Function: createHistory() ​

createHistory(log, index?): History

Defined in: packages/core/src/history.ts:4

A non-finite index, such as NaN, counts as no index: the history starts at the end.

Parameters ​

log ​

EditLog

index? ​

number = log.ops.length

Returns ​

History