How to add a suffix to duplicates array of objects using javascript?
I've got a following array of objects let views = [ { name: "A View", active: true, }, { name: "B View", active: false, }, { name: "C View", active: false, } ]; When another elements are added, one by…