angular mutating the data items instead of replacing them with new instances code example Example: how to push into array javascript without mutating const newArray = array.contact(newItem);