Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

linked-list

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linked-list - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

_destination/linked-list.amd.max.js

@@ -1,2 +0,2 @@

/*! linked-list 0.0.1 Original author Titus Wormer <tituswormer@gmail.com>. Released under the MIT license. @preserve */
/*! linked-list 0.0.2 Original author Titus Wormer <tituswormer@gmail.com>. Released under the MIT license. @preserve */
define(function() {var module={}, exports = module.exports = {};

@@ -3,0 +3,0 @@

@@ -1,2 +0,2 @@

/*! linked-list 0.0.1 Original author Titus Wormer <tituswormer@gmail.com>. Released under the MIT license. @preserve */
/*! linked-list 0.0.2 Original author Titus Wormer <tituswormer@gmail.com>. Released under the MIT license. @preserve */
(function(root){var module={}, exports = module.exports = {};

@@ -3,0 +3,0 @@

@@ -1,2 +0,2 @@

/*! linked-list 0.0.1 Original author Titus Wormer <tituswormer@gmail.com>. Released under the MIT license. @preserve */
/*! linked-list 0.0.2 Original author Titus Wormer <tituswormer@gmail.com>. Released under the MIT license. @preserve */

@@ -3,0 +3,0 @@ module.exports = List;

@@ -5,3 +5,3 @@ {

"description": "Minimalistic linked lists.",
"version": "0.0.1",
"version": "0.0.2",
"keywords": [

@@ -34,12 +34,23 @@ "linked",

"browsers": [
"iexplore/6.0",
"iexplore/latest",
"chrome/4.0",
"chrome/latest",
"chrome/canary",
"firefox/3.0",
"firefox/latest",
"firefox/nightly",
"opera/10",
"opera/latest",
"opera/next",
"safari/4.0",
"safari/latest",
"firefox/nightly",
"opera/next",
"chrome/canary"
"iphone/6.0",
"iphone/latest",
"ipad/6.0",
"ipad/latest",
"android-browser/4.2",
"android-browser/latest"
]
}
}

@@ -187,20 +187,2 @@ # Linked List

#### LinkedList#asArray()
```js
var item = new LinkedList.Item(),
item_ = new LinkedList.Item(),
list = new LinkedList(item, item_),
array = list.asArray();
array[0] === item // true
array[1] === item_ // true
array[0].next === null // true
array[1].prev === null // true
array[0].list === null // true
list.head === null // true
```
Empties the list, and returns the detached items as an array.
#### LinkedList#head

@@ -207,0 +189,0 @@ ```js

var List, Item, assert;
var List = require('..'),
Item = List.Item,
assert = require('assert');
try {
List = require('linked-list');
} catch (e) {
List = require('..');
}
Item = List.Item;
assert = require('assert');
assert.isArray = function (result) {

@@ -15,0 +7,0 @@ return assert(Object.prototype.toString.call(result) === '[object Array]');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc