delArrayItem: function (array,item) { const index = array.findIndex(text => text.name === item.name); array.splice(index, 1);},