UNPKG

si-funciona

Version:

Funciones de utilidad para uso general. [General usage utility functions.]

1 lines 469 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/stable");class BasicQueue{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.innerList=e}dequeue(){return this.innerList.shift()}empty(){return!this.size()}enqueue(e){return this.innerList.push(e),this}peek(){return this.empty()?null:this.innerList[0]}size(){return this.innerList.length}}var _default=exports.default=BasicQueue;