-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(operators): write comprehensive JSDoc on window operators #1489
Conversation
I'll check in #1473 soon. (May require another rebase?) |
No problem to rebase IMO |
* var result = clicks.windowCount(3) | ||
* .map(win => win.skip(1)) // skip first of every 3 clicks | ||
* .mergeAll(); // flatten the Observable-of-Observables | ||
* result.subscribe(x => console.log(x)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha.. this example. We should probably come up with something better at some point. But this will do for now. I look at this and think "why not clicks.filter((_, i) => i % 3 !== 2)
?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's duper hard to find small examples and not make it even a little bit contrived. I started to question even the purpose of some operators, if anyway you can solve the problem with other operators.
LGTM |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Merge after PR #1473 is merged