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

perf(internal): use strict equality for isObject() #4493

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

bmeurer
Copy link
Contributor

@bmeurer bmeurer commented Jan 24, 2019

In isObject(x) use triple equal instead of double equal comparison
with null, since undefined will be ruled out via the typeof, and
therefore it's sufficient to just check for null initially.

In `isObject(x)` use triple equal instead of double equal comparison
with `null`, since `undefined` will be ruled out via the `typeof`, and
therefore it's sufficient to just check for `null` initially.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7945

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 96.813%

Totals Coverage Status
Change from base Build 7939: -0.2%
Covered Lines: 5256
Relevant Lines: 5429

💛 - Coveralls

@benlesh benlesh merged commit fc84a00 into ReactiveX:master Jan 24, 2019
@benlesh
Copy link
Member

benlesh commented Jan 24, 2019

Thank you @bmeurer!

@bmeurer bmeurer deleted the isObject_perf branch January 25, 2019 10:59
@lock lock bot locked as resolved and limited conversation to collaborators Feb 24, 2019
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