Type Parameters

  • T

Constructors

Properties

Methods

Constructors

Properties

stack: T[]

Methods

  • The pop function in TypeScript removes and returns the top element of a stack, or returns undefined if the stack is empty.

    Returns undefined | T

    The pop() method is being called on the stack array, which removes and returns the last element of the array. The method returns the removed element of type T or undefined if the array is empty.

Generated using TypeDoc