import { Observable , combineLatest } from 'rxjs' ; import { map } from 'rxjs/operators' ; param input function combinePropsLatest ( input ) { const keys = Object . keys ( input ) ; return combineLatest ( keys . map ( key => input [ key ] ) ) . pipe ( map ( resultArray => { const results = { } ; resultArray . forEach ( ( result , i ) => { results [ keys [ i ] ] = result ; } ) ; return results ; } ) ) ; } export default combinePropsLatest ;