Issue
I'm looking at this snippet of code:
It's typescript. On the first line there is:
... return of (true);
What's this syntax?
Solution
Most of the short function names in this snippet are RxJS operators.
Instead of:
Observable.of()
Observable.from()
Observable.mergeMap()
You have:
of()
from()
mergeMap()
Look at the top of the snippet, you should see the imports for these RxJS operators.
Note that this is NOT the usual practice (I think it makes the code harder to read).
Answered By - AngularChef
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.