js 如何获取数组元素的前置属性(如下图)?

新手上路,请多包涵

image.png

阅读 1.4k
1 个回答
arr就是colletion这个数组
[...arr].map(v => v.__proto__.constructor.name)
推荐问题