A Stack
is used to define a FIFO (First-In-First-Out) collection of data.
abstract class AbstractStack {
size: number;
constructor(...items?: any[]);
push(item: any);
pushAll(...items: any[]);
pop(): any;
peek(): any;
clear();
[Symbol.iterator]();
}