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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -