Javascript – Change array of object value based on another array
const array1 = [ { id: "40", alias: "Number", name: "Number", }, { id: "41", alias: "Salary", name: "Salary", }, ]; const array2 = [ { id: "Sum__Salary__U3VtKFVTJTIwRW1wbG95ZWUuU2FsYXJ5KQ__", name: "Salary", }, { id: "40", name: "Number" }, ]; I want…