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.

12 lines (10 loc) 234 B
function repeat(entry, count) { return { *[Symbol.iterator]() { for (let i = 0; i < count; i++) yield entry; } }; } export { repeat as default }; //# sourceMappingURL=repeat.js.map