Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Stack

Stack data structure

Hierarchy

  • Stack

Constructors

Properties

Methods

Constructors

constructor

  • Returns Stack

Properties

Private stack

stack: LinkedList

Methods

isEmpty

  • isEmpty(): boolean
  • Returns boolean

peak

  • peak(): any
  • Returns any

pop

  • pop(): any
  • Returns any

push

  • push(value: any): Stack
  • Parameters

    • value: any

    Returns Stack

toArray

  • toArray(): any[]
  • Returns any[]

toString

  • toString(callback?: function): string
  • Parameters

    • Optional callback: function
        • (value: any): string
        • Parameters

          • value: any

          Returns string

    Returns string