bg-stack
0.1.0 • Public • Published
classic stack implementation
var Stack = require("bg-stack");
var stack = new Stack();
runtime O(1)
stack.push(1);
runtime O(1)
@returns the last item pushed onto the stack
'let item = stack.pop()'
runtime O(1)
@returns true when the stack is empty
Package Sidebar
Install
Weekly Downloads