An observable FILO stack

Type Parameters

  • T

Implements

  • Disposable

Constructors

Properties

bottom$: Observable<undefined | T>

Observable returning the element at the bottom of the stack

bottomDelta$: Observable<ObservableStackDelta<T>>

Observable returning the current bottom element and whether it was just added

empty$: Observable<boolean>

An observable emitting true if there are no items in the stack

itemAdded$: Observable<ObservableStackItem<T>>

Emits for every item that is added to the stack

itemDelta$: Observable<ObservableStackItemChange<T>>

Emits for every item that is added/removed in the stack, including the changes from an empty stack to the current state

itemRemoved$: Observable<ObservableStackItem<T>>

Emits for every item that is removed from the stack

items$: Observable<T[]> = ...

An observable containing the items of the stack from bottom to top

itemUpdates$: Observable<ObservableStackItemChange<T>>

Emits for every item that is added or removed from the stack

length$: Observable<number>

An observable emitting the number of items in the stack

top$: Observable<undefined | T>

Observable returning the element at the top of the stack

topDelta$: Observable<ObservableStackDelta<T>>

Observable returning the current top element and whether it was just added

updates$: Observable<T[]>

Emits all updates to the stack

Accessors

Methods