import { forkJoin } from 'rxjs/observable/forkJoin';
import { interval } from 'rxjs/observable/interval';
var s = interval(1000).take(2);
var s1 = interval(1000).take(3);
var sub = forkJoin(s, s1);
sub.subscribe(x => console.log(x));
Uncaught SyntaxError: Unexpected token {