@tsdotnet/linq
Version:
A familiar set of functions that operate on JavaScript iterables (ES2015+) in a similar way to .NET's LINQ does with enumerables.
19 lines (16 loc) • 431 B
JavaScript
import { ArgumentNullException } from '@tsdotnet/exceptions';
function merge(sequences) {
if (!sequences)
throw new ArgumentNullException('sequences');
return {
*[Symbol.iterator]() {
for (const s of sequences) {
for (const e of s) {
yield e;
}
}
}
};
}
export { merge as default };
//# sourceMappingURL=merge.js.map