how to push into array javascript without mutating

JavaScript
const newArray = array.contact(newItem);
Source

Also in JavaScript: