它在ES5规范中指定。
如果Type(value)为Object,并且IsCallable(value)为false
If the [[Class]] internal property of value is "Array" then Return the result of calling the abstract operation JA with argument value.Else, return the result of calling the abstract operation JO with argument value.
因此,让我们看一下JO。这是相关的部分:
令K为内部字符串列表,该字符串列表由 [[Enumerable]]属性为true的value 的 所有自身属性
的名称组成。字符串的顺序应与Object.keys标准内置函数所使用的顺序相同。



