Добавление в операторе спреда в JavaScript
let numberStore = [0, 1, 2];
let newNumber = 12;
numberStore = [...numberStore, newNumber];
Lovely Locust
let numberStore = [0, 1, 2];
let newNumber = 12;
numberStore = [...numberStore, newNumber];