oldArr.forEach(item=>{ newArr.forEach((items,index)=>{ item.name === items.name ? newArr.splice(index,1):'' }) })