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.

16 lines (14 loc) 346 B
function select(selector) { return function (sequence) { return { *[Symbol.iterator]() { let i = 0; for (const e of sequence) { yield selector(e, i++); } } }; }; } export { select as default }; //# sourceMappingURL=select.js.map