bradxr
8/4/2018 - 2:03 PM

Add Data to Start of Array

// declare array
let arr = [1, 2, 3];

// add data to start of array
arr.unshift(0);

console.log(arr);   // [0, 1, 2, 3]