function mergeArrays(...arrs) {
    return Array.prototype.concat.apply([], arrs);
}
Efficiently merge arrays, creating a new copy.
Adapted from https://stackoverflow.com/a/6768642/13989043
@param  {Array[]} arrs Arrays to merge.
@returns {Array} The merged array.