A signal based FILO stack

Type Parameters

  • T

Constructors

Properties

bottom: Signal<undefined | T>

Signal returning the element at the bottom of the stack

bottomDelta: Signal<SignalStackDelta<T>>

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

empty: Signal<boolean> = ...

A signal emitting true if there are no items in the stack

items: Signal<T[]>

A signal containing the items of the stack from bottom to top

length: Signal<number> = ...

A signal emitting the number of items in the stack

top: Signal<undefined | T>

Signal returning the element at the top of the stack

topDelta: Signal<SignalStackDelta<T>>

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

Methods