Class: TypedSizeLimitedStack

TypedSizeLimitedStack()

A stack thats with limited size and specific types.

Constructor

new TypedSizeLimitedStack()

Source:

Extends

Members

items

The number of items in the stack.

Inherited From:
Source:

Methods

add(…items) → {undefined}

Add an item to the stack.

Parameters:
Name Type Attributes Description
items * <repeatable>

The items to add.

Inherited From:
Source:
Returns:
Type
undefined

remove() → {*}

Remove an item from the stack.

Inherited From:
Source:
Returns:

The item.

Type
*