MCPcopy Create free account
hub / github.com/davidshariff/computer-science / Queue

Function Queue

Data Structures/Queue.js:3–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1(function() {
2
3 var Queue = function() {
4 this.tail = -1;
5 this._queue = [];
6 };
7
8 Queue.prototype.enqueue = function(node) {
9 this.tail++;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected