We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eeecbf commit eeb6d15Copy full SHA for eeb6d15
docs/operators/comparison.md
@@ -99,7 +99,7 @@ x > '11' // true
99
100
x.valueOf = function () { return '1' };
101
x > '11' // false
102
-// 等同于 [2].valueOf() > '11'
+// 等同于 (function () { return '1' })() > '11'
103
// 即 '1' > '11'
104
```
105
@@ -115,7 +115,7 @@ x > '11' // false
115
// 即 '2' > '11'
116
117
{ x: 2 } >= { x: 1 } // true
118
-// 等同于 { x: 2 }.valueOf().toString() >= { x: 1 }.valueOf().toString()
+// 等同于 ({ x: 2 }).valueOf().toString() >= ({ x: 1 }).valueOf().toString()
119
// 即 '[object Object]' >= '[object Object]'
120
121
0 commit comments