Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Stack<T>

A stack.

template

T The type of the items.

Type parameters

  • T

Hierarchy

  • Stack

Index

Methods

Methods

push

  • push(...items: Array<T>): number
  • Pushes one or more item to the stack.

    Parameters

    • Rest ...items: Array<T>

      The items to push.

    Returns number

    The new length of the stack.

Generated using TypeDoc