1
0
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:
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; return foo instanceof Array;
} }
} }
var o = new MyClass();
o instanceof Array // false [1, 2, 3] instanceof MyClass() // true
``` ```
### Symbol.isConcatSpreadable ### Symbol.isConcatSpreadable