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

circular-linked-list

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circular-linked-list - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "circular-linked-list",
"version": "0.0.2",
"version": "0.0.3",
"description": "Circular singly linked list, heavily based on Singlie by Klaus Sinani.",

@@ -5,0 +5,0 @@ "main": "dist/circular-linked-list.js",

# Circular-linked-list
![](http://img.badgesize.io/TimvanScherpenzeel/circular-linked-list/master/dist/circular-linked-list.js.svg?compression=gzip&maxAge=60)
[![npm version](https://badge.fury.io/js/circular-linked-list.svg)](https://www.npmjs.com/package/circular-linked-list)

@@ -20,17 +21,17 @@ [![dependencies](https://david-dm.org/timvanscherpenzeel/circular-linked-list.svg)](https://david-dm.org/timvanscherpenzeel/circular-linked-list)

const circularLinkedList = new CircularLinkedList();
const list = new CircularLinkedList();
circularLinkedList.append("B").prepend("A");
list.append("B").prepend("A");
console.log(circularLinkedList.node(0));
console.log(list.node(0));
// => Node { value: 'A', next: Node { value: 'B', next: [CircularLinkedList] } }
console.log(circularLinkedList.node(0).next);
console.log(list.node(0).next);
// => Node { value: 'B', next: Node { value: 'A', next: [CircularLinkedList] } }
console.log(circularLinkedList.node(0).next.next);
console.log(list.node(0).next.next);
// => Node { value: 'A', next: Node { value: 'B', next: [CircularLinkedList] } }
console.log(
circularLinkedList
list
.map(x => `[${x}]`)

@@ -37,0 +38,0 @@ .reverse()

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