nano-equal icon indicating copy to clipboard operation
nano-equal copied to clipboard

[bug] valueOf / toString

Open NikolayMakhonin opened this issue 6 years ago • 0 comments

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();
        }

NikolayMakhonin avatar Jul 21 '19 05:07 NikolayMakhonin