+5
-5
| /** | ||
| * @fileOverview Implementation of a stack (LIFO) data structure | ||
| * @author Jason S. Jones | ||
| * @version 0.1.0 | ||
| * @version 0.1.2 | ||
| * @license MIT | ||
@@ -46,5 +46,5 @@ */ | ||
| /** | ||
| * Determines if the list is empty | ||
| * Determines if the stack is empty | ||
| * | ||
| * @returns {boolean} true if the list is empty, false otherwise | ||
| * @returns {boolean} true if the stack is empty, false otherwise | ||
| */ | ||
@@ -65,3 +65,3 @@ isEmpty: function () { | ||
| /** | ||
| * Pushes an new item containing 'data' onto the top of the stack | ||
| * Pushes a new item containing 'data' onto the top of the stack | ||
| * | ||
@@ -104,2 +104,2 @@ * @param {object} data the data to push on top of the stack | ||
| module.exports = Stack; | ||
| })(); | ||
| }()); |
+1
-1
| { | ||
| "name": "stack-lifo", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "Javascript implementation of a stack (LIFO) data structure", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+5
-6
@@ -1,2 +0,2 @@ | ||
| # [![npm version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![dependency status][dm-url]][dm-image] | ||
| [![npm version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![dependency status][dm-url]][dm-image] | ||
@@ -77,3 +77,3 @@ # Stack Data Structure | ||
| var Stack = require('stack-lifo'); | ||
| var stack - new Stack(); | ||
| var stack = new Stack(); | ||
@@ -117,4 +117,4 @@ stack.isEmpty(); | ||
| * ### isEmpty() | ||
| Determines if the stack is empty or not. Returns true if is empty, false | ||
| otherwise. | ||
| Determines if the stack is empty or not. Returns true if the stack is | ||
| empty, false otherwise. | ||
@@ -125,3 +125,3 @@ * ### size() | ||
| * ### clear() | ||
| Clears the list of all nodes/data | ||
| Clears the stack of all data | ||
@@ -150,2 +150,1 @@ * ### push() | ||
| [dm-url]:https://david-dm.org/jasonsjones/stack-lifo.svg | ||
12974
0.02%147
-0.68%