You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
257 B
11 lines
257 B
import { AdapterBase } from "./AdapterBase";
|
|
|
|
export class Stack<T> extends AdapterBase<T>{
|
|
public remove(): T | undefined {
|
|
if(this._arr.length > 0){
|
|
return this._arr.pop();
|
|
}
|
|
return undefined;
|
|
}
|
|
|
|
}
|