UNPKG

@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.

13 lines (11 loc) 390 B
const doneResult = Object.freeze({ done: true, value: undefined }); const emptyIterator = Object.freeze({ next() { return doneResult; } }); const emptyIterable = Object.freeze({ [Symbol.iterator]() { return emptyIterator; } }); function empty () { return emptyIterable; } export { empty as default, doneResult, emptyIterable, emptyIterator }; //# sourceMappingURL=empty.js.map