import { IAsyncEnumerable } from "../../types" ; import { BasicAsyncEnumerable } from "../BasicAsyncEnumerable" ; param source param count returns export const skip = < TSource > ( source , count ) : IAsyncEnumerable < TSource > => { async function * iterator ( ) { let i = 0 ; for await ( const item of source ) { if ( i ++ >= count ) { yield item ; } } } return new BasicAsyncEnumerable ( iterator ) ; } ;