console.log(Object.keys({x: 0, y: 0, z: 2})); // → ["x", "y", "z"]
a2.filter(d => !a1.includes(d)) // gives ["c", "d"]