linked-list
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80879
1686
356