wyjie
Results
1
comments of
wyjie
> ```js > const object1 = {}; > object1[Symbol.toStringTag] = 'Array'; > console.log(type(object1)); // Array > ``` > > 这个期望object1的返回值是 'object' 而不是 'Array'吗?如果自定义了Symbol.toStringTag,感觉返回Symbol.toStringTag是合理的吧? 好像也有道理