code: function mergeArrays(array1, array2) {
    return array2.length >= array1.length ? [...array2] : [...array2, ...array1.slice(array2.length)];
  }
docs: @function mergeArrays
  
  @description
  shallowly merge two arrays into a new object modeled after the first
  
  @param {Array<*>} array1 the first array to merge
  @param {Array<*>} array2 the second array to merge
  @returns {Array<*>} the merged arrays