@utilityjs/queue
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Queue

An implementation of Queue data structure.

license npm latest package npm downloads types

npm i @utilityjs/queue | yarn add @utilityjs/queue

Queue()

export default class Queue<T> {
  constructor();
  isEmpty(): boolean;
  enqueue(value: T): void;
  dequeue(): T | null;
  peek(): T | null;
}

Package Sidebar

Install

npm i @utilityjs/queue

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.91 kB

Total Files

8

Last publish

Collaborators

  • mimshins