mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-29 05:42:20 +00:00
edit symbol/hasInstance
This commit is contained in:
parent
b2594ee791
commit
50d4285105
@ -391,8 +391,8 @@ class MyClass {
|
|||||||
return foo instanceof Array;
|
return foo instanceof Array;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var o = new MyClass();
|
|
||||||
o instanceof Array // false
|
[1, 2, 3] instanceof MyClass() // true
|
||||||
```
|
```
|
||||||
|
|
||||||
### Symbol.isConcatSpreadable
|
### Symbol.isConcatSpreadable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user