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 -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -