Object array clone with subset of properties

后端 未结 3 1338
执笔经年
执笔经年 2020-12-18 09:40

What is the most efficient way in JavaScript to clone an array of uniform objects into one with a subset of properties for each object?

UPDATE

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-18 10:11

    Performance-wise, that would be the most efficient way to do it, yes.

提交回复
热议问题