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

Function Stack

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

Source from the content-addressed store, hash-verified

1(function() {
2
3 var Stack = function() {
4 this.top = -1;
5 this._stack = [];
6 };
7
8 Stack.prototype.push = function(node) {
9 this.top++;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected