Javascript – Replacing an element in array is replacing every element in array?
I have an array that I want to search and just place one item that matches in a search like so:- Array and code example : const test = [ { id: 0, title: 'test1', seen: false }, { id:…