Nicholas Jamieson
1 min readSep 30, 2017

--

You’d need to enclose the entire pipeline in parentheses, like this:

const value$ = (
range(0, 10)
|> filter(x => x % 2 === 0)
|> map(x => x + x)
|> scan((acc, x) => acc + x, 0)
|> toArray()
).subscribe(x => console.log(x));

For the draft spec, see this issue and this PR.

--

--

Nicholas Jamieson
Nicholas Jamieson

Written by Nicholas Jamieson

RxJS core team member; front-end developer; mentor; speaker; open-source contributor

No responses yet