Hullo JS
Search…
|> merge
import { merge } from '@hullo/core'
Creates a third observable that will be releasing values of those of the source and an observable provided as an argument.
1
import { of, merge } from '@hullo/core';
2
const a = of([1,2]);
3
const b = of([3,4]);
4
const c = a.pipe(merge(b));
5
c.subscribe({ next(v) { console.log(v) } });
6
// prints:
7
// 1
8
// 3
9
// 2
10
// 4
Copied!
Last modified 2yr ago
Copy link