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

@datastructures-js/linked-list

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datastructures-js/linked-list - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md

@@ -9,4 +9,8 @@ # Changelog

## [2.0.1] - 2020-03-22
### Fixed
- Readme & package.json
## [2.0.0] - 2020-03-22
### Changed
- New release for LinkedList & DoublyLinkedList

9

package.json
{
"name": "@datastructures-js/linked-list",
"version": "2.0.0",
"description": "linked list implementation in javascript",
"version": "2.0.1",
"description": "a javascript implementation of LinkedList & DoublyLinkedList",
"main": "index.js",

@@ -16,3 +16,6 @@ "scripts": {

"linked list es6",
"linked list js"
"linked list js",
"doubly linked list",
"doubly linked list es6",
"doubly linked list js"
],

@@ -19,0 +22,0 @@ "author": "Eyas Ranjous <eyas.ranjous@gmail.com>",

@@ -7,3 +7,3 @@ # @datastrucures-js/linked-list

a javascript implementation for LinkedList & DoublyLinkedList.
a javascript implementation of LinkedList & DoublyLinkedList.

@@ -86,9 +86,9 @@ <img width="429" alt="Linked List" src="https://user-images.githubusercontent.com/6517308/35762715-5d00c9bc-0861-11e8-88f7-6e503a1fa3af.png">

```js
let head1 = linkedList.insertFirst(1); // head1.getValue() = 1
head1 = linkedList.insertFirst(2); // head1.getValue() = 2
console.log(head1.getNext().getValue()); // 1
linkedList.insertFirst(1);
const head1 = linkedList.insertFirst(2);
console.log(head1.getValue()); // 2
let head2 = doublyLinkedList.insertFirst(1); // head2.getValue() = 1
head2 = doublyLinkedList.insertFirst(2); // head2.getValue() = 2
console.log(head2.getNext().getValue()); // 1
doublyLinkedList.insertFirst(1);
const head2 = doublyLinkedList.insertFirst(2);
console.log(head2.getValue()); // 2
```

@@ -123,9 +123,9 @@

```js
let last1 = linkedList.insertLast(3); // last1.getValue() = 3
last1 = linkedList.insertLast(4); // last1.getValue() = 4
linkedList.insertLast(3);
const last1 = linkedList.insertLast(4);
console.log(last1.getValue()); // 4
console.log(last1.getNext()); // null
let last2 = doublyLinkedList.insertLast(3); // last2.getValue() = 3
last2 = doublyLinkedList.insertLast(4); // last2.getValue() = 4
doublyLinkedList.insertLast(3);
const last2 = doublyLinkedList.insertLast(4);
console.log(last2.getValue()); // 4

@@ -132,0 +132,0 @@ console.log(last2.getPrev().getValue()); // 3

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