javascript - Converting code from Rxjs to xstream -


what equivalent of

return rx.observable.merge([deletetodo$, addtodo$, completetodo$]).startwith([])   .scan(function (currenttodos, modifier) { return modifier(currenttodos); }); 

the above in rxjs in xstream?

should this. initial value included second argument after function.

xs.merge(deletetodo$, addtodo$, completetodo$) .fold(function (currenttodos, modifier) { return modifier(currenttodos); }, [])


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -