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 5.2.0 to 5.2.1

4

CHANGELOG.md

@@ -8,2 +8,6 @@ # Changelog

## [Unreleased]
## [5.2.1] - 2022-02-16
### Fixed
- TS types and readme.
## [5.2.0] - 2022-02-14

@@ -10,0 +14,0 @@ ### Added

@@ -255,3 +255,3 @@ # DoublyLinkedList

```js
const node5 = doublyLinkedList.find(
const node5 = doublyLinkedList.findReverse(
(node, position) => node.getValue() === 5

@@ -575,2 +575,21 @@ );

<table>
<tr>
<th align="center">params</th>
<th align="center">return</th>
<th align="center">runtime</th>
</tr>
<tr>
<td align="center">
values: T[]
</td>
<td align="center">
DoublyLinkedList&lt;T&gt;
</td>
<td align="center">
O(n)
</td>
</tr>
</table>
##### JS

@@ -577,0 +596,0 @@ ```js

@@ -420,2 +420,21 @@ # LinkedList

<table>
<tr>
<th align="center">params</th>
<th align="center">return</th>
<th align="center">runtime</th>
</tr>
<tr>
<td align="center">
values: T[]
</td>
<td align="center">
LinkedList&lt;T&gt;
</td>
<td align="center">
O(n)
</td>
</tr>
</table>
##### JS

@@ -422,0 +441,0 @@ ```js

2

package.json
{
"name": "@datastructures-js/linked-list",
"version": "5.2.0",
"version": "5.2.1",
"description": "a javascript implementation of LinkedList & DoublyLinkedList",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,4 +15,4 @@ import { DoublyLinkedListNode } from './doublyLinkedListNode';

forEachReverse(cb: (node: DoublyLinkedListNode<T>, position: number) => void): void;
find(cb: (node: DoublyLinkedListNode<T>, startingNode?: DoublyLinkedListNode<T>) => boolean): DoublyLinkedListNode<T>;
findReverse(cb: (node: DoublyLinkedListNode<T>, startingNode?: DoublyLinkedListNode<T>) => boolean): DoublyLinkedListNode<T>;
find(cb: (node: DoublyLinkedListNode<T>) => boolean, startingNode?: DoublyLinkedListNode<T>): DoublyLinkedListNode<T>;
findReverse(cb: (node: DoublyLinkedListNode<T>) => boolean, startingNode?: DoublyLinkedListNode<T>): DoublyLinkedListNode<T>;
filter(cb: (node: DoublyLinkedListNode<T>, position: number) => boolean): DoublyLinkedList<T>;

@@ -19,0 +19,0 @@ head(): DoublyLinkedListNode<T>;

@@ -13,3 +13,3 @@ import { LinkedListNode } from './linkedListNode';

forEach(cb: (node: LinkedListNode<T>, position: number) => void): void;
find(cb: (node: LinkedListNode<T>) => boolean): LinkedListNode<T>;
find(cb: (node: LinkedListNode<T>) => boolean, startingNode?: LinkedListNode<T>): LinkedListNode<T>;
filter(cb: (node: LinkedListNode<T>, position: number) => boolean): LinkedList<T>;

@@ -16,0 +16,0 @@ head(): LinkedListNode<T>;

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