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
Post a Comment