mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
edit symbol/hasInstance
This commit is contained in:
+2
-2
@@ -391,8 +391,8 @@ class MyClass {
|
||||
return foo instanceof Array;
|
||||
}
|
||||
}
|
||||
var o = new MyClass();
|
||||
o instanceof Array // false
|
||||
|
||||
[1, 2, 3] instanceof MyClass() // true
|
||||
```
|
||||
|
||||
### Symbol.isConcatSpreadable
|
||||
|
||||
Reference in New Issue
Block a user