minor fixes
This commit is contained in:
parent
2d63151779
commit
d92cb4743f
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ alert('0' == [] ); // false
|
||||||
|
|
||||||
Here, in both cases, we compare a primitive with an array object. So the array `[]` gets converted to primitive for the purpose of comparison and becomes an empty string `''`.
|
Here, in both cases, we compare a primitive with an array object. So the array `[]` gets converted to primitive for the purpose of comparison and becomes an empty string `''`.
|
||||||
|
|
||||||
Then the comparison process goes on:
|
Then the comparison process goes on, as described in the chapter <info:type-conversions>:
|
||||||
|
|
||||||
```js run
|
```js run
|
||||||
// [] converted to ''
|
// [] converted to ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue