UNPKG

recoder-code

Version:

Complete AI-powered development platform with ML model training, plugin registry, real-time collaboration, monitoring, infrastructure automation, and enterprise deployment capabilities

21 lines (16 loc) 400 B
"use strict"; const DoublyLinkedListIterator = require("./DoublyLinkedListIterator"); /** * Thin wrapper around an underlying DDL iterator */ class DequeIterator extends DoublyLinkedListIterator { next() { const result = super.next(); // unwrap the node... if (result.value) { result.value = result.value.data; } return result; } } module.exports = DequeIterator;