import { IAsyncEnumerable } from "../../types" ; import { BasicAsyncEnumerable } from "../BasicAsyncEnumerable" ; param source returns export const enumerateObjectAsync = < TInput > ( source ) : IAsyncEnumerable < [ keyof TInput , TInput [ keyof TInput ] ] > => { async function * iterable ( ) { for ( const key in source ) { yield [ key , source [ key ] ] ; } } return new BasicAsyncEnumerable ( iterable ) ; } ;