Home > @thi.ng/atom > History > (constructor)
Constructs a new instance of the History
class
Signature:
constructor(state: IAtom<T>, maxLen?: number, changed?: Predicate2<T>);
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) ) |