Codibre/fluent-iterable-js-sdsl

View on GitHub
src/queue/iterable-queue.ts

Summary

Maintainability
A
1 hr
Test Coverage
import { Queue } from 'js-sdsl';

export class IterableQueue<K> extends Queue<K> {
    *[Symbol.iterator]() {
        while (this.length > 0) {
            yield this.pop();
        }
    }
}