Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

staltz
Copy link
Member

@staltz staltz commented Mar 18, 2016

Merge after PR #1473 is merged

@kwonoj
Copy link
Member

kwonoj commented Mar 18, 2016

I'll check in #1473 soon. (May require another rebase?)

@staltz
Copy link
Member Author

staltz commented Mar 18, 2016

No problem to rebase IMO

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.982% when pulling b93b3c2 on staltz:window-docs into 82cd6d9 on ReactiveX:master.

@staltz staltz changed the title Window docs docs(operators): write comprehensive JSDoc on window operators Mar 18, 2016
@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.982% when pulling b93b3c2 on staltz:window-docs into 82cd6d9 on ReactiveX:master.

* 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));
Copy link
Member

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)?"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Copy link
Member Author

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.

@benlesh
Copy link
Member

benlesh commented Mar 29, 2016

LGTM

@kwonoj
Copy link
Member

kwonoj commented Mar 29, 2016

Merged with 7d9ed39, thanks @staltz

@kwonoj kwonoj closed this Mar 29, 2016
@staltz staltz deleted the window-docs branch March 30, 2016 07:18
@lock
Copy link

lock bot commented Jun 7, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants