js 遍历数组取key最简单的方法?

let arr=[{a:1,b:3},{aa:11,b:22}]

想要的
[{a,b},{aa,b}]

阅读 1.3k
1 个回答

arr.map(i => Object.keys(i))

推荐问题