Socket
Socket
Sign inDemoInstall

stack-lifo

Package Overview
Dependencies
2
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

10

index.js
/**
* @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;
})();
}());
{
"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",

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc