1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 1 12 1 1 22 1 1 1 | var stackQueue = require("./stackQueue.js"); var queue = function() { stackQueue.apply(this, arguments); }; queue.prototype = new stackQueue(); queue.prototype.getNext = function() { return this.list.start.data; } queue.prototype.add = queue.prototype.push; queue.prototype.remove = queue.prototype.pop; module.exports = queue; |