1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-28 21:32:20 +00:00

edit symbol/hasInstance

This commit is contained in:
ruanyf 2016-01-30 00:33:01 +08:00
parent b2594ee791
commit 50d4285105

View File

@ -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