Run all tests

This commit is contained in:
Greg Hysen
2019-06-26 00:20:46 -07:00
parent 180417b581
commit 8bc1d5fe3e
3 changed files with 398 additions and 757 deletions

View File

@@ -1,7 +1,9 @@
import * as _ from 'lodash';
export class Queue<T> {
private _store: T[] = [];
constructor (store?: T[]) {
this._store = store !== undefined ? store : [];
this._store = store !== undefined ? _.cloneDeep(store) : [];
}
public pushBack(val: T): void {
this._store.push(val);