队列

参考资料

先进先出

const queue = [];
queue.push(...[1, 2, 3]);
while (queue.length > 0) {
  console.log(queue.shift());
}
ON THIS PAGE