1.1.0 • Published 8 years ago

kcats v1.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

kcats

A stack implementation for node

NPM

Build Status

Installation

npm install kcats

Usage

var kcats = require("kcats") Then use var stack_name = new kcats(10); where 10, here, is the maximum size of the stack.

API

  • stack_name._isEmpty() -> Boolean : Determines whether or not the stack contains anything.
  • stack_name._reset() -> Void : Allows you to instantaneously pop all elements, without printing them.
  • stack_name._isFull() -> Boolean : Determines whether or not the stack is full.
  • stack_name._push(item) -> Void : Allows you to add an item to the stack.
  • stack_name._pop() -> Item : Allows you to retrieve the element at the top of the stack.
  • stack_name._peek() -> Item : Allows you to print the element at the top of the stack without removing it.
1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago