pandorachain
v1.1.1
Published
The creation of "PandoraChain" facilitates the effortless development of a LinkedList structure, streamlining the execution of diverse operations with enhanced efficiency and precision.
Downloads
8
Readme
PandoraChain
The creation of "PandoraChain" facilitates the effortless development of a LinkedList structure, streamlining the execution of diverse operations with enhanced efficiency and precision.
Installation
npm i pandorachain
Create a Instance
const LinkedList = require('pandorachain');
const list = new LinkedList();
Methods
- insertLast (value)
- insertFirst (value)
- deleteFirst()
- deleteLast()
- add (index,value)
- delete (index)
- nodes() - return total number of Nodes
- headOne() - return LinkedList head value
- tail() - return LinkedList tail value
- clear()
- indexOf(data)
- toArray() - return new Array
- display()
License
Feedback
If you have any feedback, please reach out to us at [email protected]