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
using Object Destructuring and Property Shorthand
let array = [{ a: 5, b: 6, c: 7 }, { a: 8, b: 9, c: 10 }]; let cloned = array.map(({ a, c }) => ({ a, c })); console.log(cloned); // [{ a: 5, c: 7 }, { a: 8, c: 10 }]