![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@iamlizu/stack
Advanced tools
Javascript implementation of Stack data structure, using Array.
Install in your project with,
npm install @iamlizu/stack
Usage example,
const Stack = require("@iamlizu/stack")
// Create new instance
const stack1 = new Stack();
stack1.push(10);
console.log(stack1.getBuffer()) // [ 10 ]
Method | Description |
---|---|
getBuffer | returns a shallow copy of the Stack array |
isEmpty | return true if empty |
push | adds item to the Stack |
pop | remove item from the Stack |
peek | returns the top item from Stack without popping it |
size | returns the length of the Stack |
clear | resets the Stack to empty |
access(index) | returns the item on index from Stack |
search(item) | returns the index of given item in the Stack |
You are very much appreciated to add new functionalities to this module. Please add all the required test cases for the functionality.
You may create a pull request and wait to get reviewed, merged.
🚀 Happy coding!
FAQs
Stack implementation using Array.
We found that @iamlizu/stack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.