Javascript – How to match multiple objects by their keys and combine their values in array in js?
I have an array of objects: var arr = [ 0: {a: ["ram", "shyam", "kunal"], b: ["abc", "xyz", "wxd"], c: ["nyx", "lux", "poc"]}, 1: {d: ["ry", "cd", "er"], e: ["ew", "op", "re", "er"], c:["er", "sd", "we"]}, 2: {a: ["we", "as"],…