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

'hasOwnProperty' in javascript -

c# - Update a combobox from a presenter (MVP) -

android - Unable to generate FCM token from dynamically instantiated Firebase -