UNPKG

@msamblanet/deep-iterator

Version:

Deep iteration of any object or iterable collection. (This version revised by @msablanet)

22 lines (18 loc) 488 B
import Node from './node.js'; import SelectGenerator from './select-generator.js'; export default class RootNode extends Node { constructor(value, config) { const parentNode = { _selectGenerator: new SelectGenerator(config) } // probable transpilation issue - istanbul issue #690 /*istanbul ignore next*/ super(undefined, value, parentNode, false); } get parentNode() { return undefined; } get path() { return []; } }