UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

13 lines (11 loc) 248 B
export async function elementAt(source, index) { let i = index; for await (const item of source) { if (i === 0) { return item; } i--; } return undefined; } //# sourceMappingURL=elementat.mjs.map