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

Fix/6064 default if empty and related fixes #6070

Merged

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Mar 1, 2021

  • fix(defaultIfEmpty): Allow undefined as an argument, require an argument

    BREAKING CHANGE: defaultIfEmpty requires a value be passed. Will no longer convert undefined to null for no good reason.

    Resolves the defaultIfEmpty operator has erroneous & inconvenient typing #6064

  • fix(last): Allow defaultValue of undefined.

  • fix(first): Allow defaultValue of undefined.

  • fix(elementAt): Allow defaultValue of undefined.

@benlesh benlesh requested a review from kolodny March 1, 2021 23:09
Copy link
Collaborator

@cartant cartant left a comment

Choose a reason for hiding this comment

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

LGTM. Just a nitpick.

@benlesh benlesh merged commit c6ba979 into ReactiveX:master Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the defaultIfEmpty operator has erroneous & inconvenient typing
4 participants