https://compiletab.com/unshift-shift-arrays-javascript/
Understanding unshift() and shift() methods in Javascript | examples