UNPKG

echogarden

Version:

An easy-to-use speech toolset. Includes tools for synthesis, recognition, alignment, speech translation, language detection, source separation and more.

18 lines (13 loc) 261 B
export class Queue<T> { list: T[] = [] constructor() { } enqueue(item: T) { this.list.push(item) } dequeue(): T | undefined { return this.list.shift() } get isEmpty() { return this.list.length == 0 } get isNonempty() { return !this.isEmpty } }