I have an observable that emits measurement values with a date for a key. Something like: I need a 7 days running total and average for temp and hum. If I would have a a value for each week, I could write: However I need a running total where the values are accumulated like this: How would I design a
Tag: rxjs-observables
RXJS – return observable value when doing a map
I have an array of inputIds where I am doing a map that returns a name and value object. Inside the map, I am calling this.inputService.getInputFieldObject which returns an Observable<InputValue>. How do I return the value of the subscription instead of returning an array of subscription values? So I could have attributes returned as an array with only name and