You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As introduction of pipeable operator we do recommend custom operator in user level. If you think this should be included in core operator, fell freely reopen / create new issue includes examples can't be achieved via user level custom operator.
I've run into several situations where it would be nice to have an 'instanceOf' like operator (as have others it looks like: #2340, #3125).
I think it could be done relatively easily by adding something like this to src/internal/operators/filter.ts:
If it belongs in a separate file I think you'd just need to expose the
filter
internals (or duplicate).With it you can then do:
It may make sense to allow for multiple types (
instanceOf(NavigationStart, NavigationEnd)
), but I'm not 100% sure what the signature would look likeThe text was updated successfully, but these errors were encountered: