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

removed nullish coalescing #40

Merged
merged 1 commit into from
Oct 24, 2022
Merged

removed nullish coalescing #40

merged 1 commit into from
Oct 24, 2022

Conversation

kubikowski
Copy link
Owner

After some further testing, when there is no value provided at sets[0], the resulting new Set(undefined) behaves equivalently to new Set(): it produces an empty set, without throwing an error.

So I have removed this instance of nullish coalescing on the resulting new Set(undefined ?? new Set()). In favor of simpler and cleaner code.

@kubikowski kubikowski added type: Refactor just cleaning code: TypeScript changes to the typescript project labels Oct 24, 2022
@kubikowski kubikowski added this to the v1.4.1 milestone Oct 24, 2022
@kubikowski kubikowski self-assigned this Oct 24, 2022
@kubikowski kubikowski merged commit e520004 into main Oct 24, 2022
@kubikowski kubikowski deleted the operations branch October 24, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code: TypeScript changes to the typescript project type: Refactor just cleaning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant