![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.
dl-queue-ts
Advanced tools
This is a queue data-structure implementation for TypeScript using a doubly linked-list from the package dl-doubly-linked-list
version 1.0.3 or greater.
npm install dl-queue-ts
let q : Queue<T> = new Queue();
Name | Type | Description |
---|---|---|
length | number | Number of elements in the queue. |
Name | Param | Type | Description |
---|---|---|---|
clear | none | Empties the queue. | |
peek | index | number | Returns the element stored at the index position. Throws exception if index is out of bounds. |
pop | none | Pops the top most emlement in the queue. | |
push | element | T | Pushes an element of type T (generic) into the queue. |
Please refer to doc/index.html
for the complete documentation and API reference. The documentation for this project was generated using Compodoc.
let q : Queue<number> = new Queue();
// Pushes elements into the queue
for(let i=0; i<10; i++) {
q.push(i*3);
}
// Gets the elements in an array
let nums : Array<number|null> = queue.toArray();
// Pops an element from the queue
let n : number = q.pop();
// Peek into the array
n = q.peek(3);
// Throws an exception for out of bounds for index
n = q.peek(33);
// Empties the array
q.clear();
FAQs
A queue data-structure implementation for TypeScript.
The npm package dl-queue-ts receives a total of 1 weekly downloads. As such, dl-queue-ts popularity was classified as not popular.
We found that dl-queue-ts 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.