"Use unshift. It's like push, except it adds elements to the beginning of the array instead of the end.
- unshift/push - add an element to the beginning/end of an array
- shift/pop - remove and return the first/last element of an array "
xxxxxxxxxx
// unshift -> [array] <- push
// shift <- [array] -> pop
let myArray = [1, 2, 3, 4];
myArray.unshift(0);
// result
// [0, 1, 2, 3, 4]