Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 740 Bytes

atom.history._constructor_.md

File metadata and controls

22 lines (14 loc) · 740 Bytes

Home > @thi.ng/atom > History > (constructor)

History.(constructor)

Constructs a new instance of the History class

Signature:

constructor(state: IAtom<T>, maxLen?: number, changed?: Predicate2<T>);

Parameters

Parameter Type Description
state IAtom<T> parent state
maxLen number max size of undo stack
changed Predicate2<T> predicate to determine changed values (default !equiv(a,b))