UNPKG

@kuzanatoliorg/algorithms

Version:

The utils package for react testing library

20 lines (19 loc) 376 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Queue = void 0; class Queue { store; constructor() { this.store = []; } push(item) { this.store.push(item); } pop() { return this.store.shift() ?? null; } get length() { return this.store.length; } } exports.Queue = Queue;