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

[bug] valueOf / toString #5

Open
NikolayMakhonin opened this issue Jul 21, 2019 · 0 comments
Open

[bug] valueOf / toString #5

NikolayMakhonin opened this issue Jul 21, 2019 · 0 comments

Comments

@NikolayMakhonin
Copy link

NikolayMakhonin commented Jul 21, 2019

Remove please brackets after Object.prototype.valueOf() and Object.prototype.toString()

        if (a.valueOf !== Object.prototype.valueOf() && b.valueOf !== Object.prototype.valueOf()) {
            return a.valueOf() === b.valueOf();
        }

        if (a.toString !== Object.prototype.toString() && b.toString !== Object.prototype.toString()) {
            return a.toString() === b.toString();
        }
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

No branches or pull requests

1 participant