@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) • 451 B
JavaScript
import { ArgumentNullException } from '@tsdotnet/exceptions';
function onComplete(action) {
if (!action)
throw new ArgumentNullException('action');
return function (sequence) {
return {
*[Symbol.iterator]() {
for (const e of sequence)
yield e;
action();
}
};
};
}
export { onComplete as default };
//# sourceMappingURL=onComplete.js.map