It's better to use array destructuring for some rxjs operators.
Instead of this:
return zip(paramOne$, paramTwo$).pipe( map((data) => { if(data[0]) {...} ...)}) ); You can do it by this:
return zip(paramOne$, paramTwo$).pipe( map(([paramOne, paramTwo]) => { if(paramOne) {...} ...)}) );
Top comments (0)