bg-stack

0.1.0 • Public • Published

bg-stack

classic stack implementation

Usage

var Stack = require("bg-stack"); var stack = new Stack();

push

runtime O(1)

stack.push(1);

pop

runtime O(1) @returns the last item pushed onto the stack

'let item = stack.pop()'

empty

runtime O(1) @returns true when the stack is empty

/bg-stack/

    Package Sidebar

    Install

    npm i bg-stack

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • dragon_rider