1.2.32 • Published 5 years ago

@clarketm/superqueue v1.2.32

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Queue

NPM release

Queue with superpowers! 💪

Individual Module Installation

Yarn

$ yarn add @clarketm/superqueue

Npm

$ npm install @clarketm/superqueue --save

API

constructor(iterable: Iterable)

Construct a Queue

size: number

Get the current size of the queue

front: Item

Get the front item in the queue

rear: Item

Get the rear item in the queue

isEmpty(): boolean

Check if queue is empty

clear(): void

Clear the items from the queue

enqueue(item: Item): number

Enqueue an item into the queue

NameTypeAttributeDescription
itemItemitem to enqueue

dequeue(): Item

Dequeue an item from the queue

toArray(): Array

Convert the queue to an array

1.2.32

5 years ago

1.2.31

6 years ago

1.2.25

6 years ago

1.2.20

6 years ago

1.2.18

6 years ago

1.2.17

6 years ago

1.2.16

6 years ago

1.2.15

6 years ago

1.2.14

6 years ago

1.2.13

6 years ago

1.2.11

6 years ago

1.2.9

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago