let toRemove = { id:1, first_name : "Marty", last_name : "Mcfly", } for (let i = 0; i < array.length; i++) { if (array[i].id === toRemove.id) { accountTemp.splice(i, 1); } }