Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public concat(
other: StackItemEnumerator,
): StackItemEnumerator {
const iterable = concat(
AsyncIterableX.from(this.enumerator as AsyncIterableIterator),
AsyncIterableX.from(other.enumerator as AsyncIterableIterator),
);
return new StackItemEnumerator(iterable[Symbol.asyncIterator]());
}
}
public concatIterator(other: StackItemIterator): StackItemIterator {
const iterable = concat(
AsyncIterableX.from(this.enumerator as AsyncIterableIterator),
AsyncIterableX.from(other.enumerator as AsyncIterableIterator),
);
return new StackItemIterator(iterable[Symbol.asyncIterator]());
}
}