Skip to content

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

Merged
benlesh merged 1 commit into
ReactiveX:masterfrom
bmeurer:isObject_perf
Jan 24, 2019
Merged

benlesh merged 1 commit into
ReactiveX:masterfrom
bmeurer:isObject_perf

Conversation

@bmeurer

@bmeurer bmeurer commented Jan 24, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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

benlesh commented Jan 24, 2019

Copy link
Copy Markdown
Member

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