src/Util.js
function (path1, path2) {
    return path1.length === 0 ? path2 :
      (path2.length === 0 ? path1 : path1.concat(path2));
  }
function (path1, path2) {
    return path1.length === 0 ? path2 :
      (path2.length === 0 ? path1 : path1.concat(path2));
  }
function ( path1 , path2 ) { return path1 . length === 0 ? path2 : ( path2 . length === 0 ? path1 : path1 . concat ( path2 ) ) ; }
Join two array paths.
@param {Array} path1 array of string and numbers
@param {Array} path2 array of string and numbers
@returns {Array} joined path
@memberOf Util
Join two array paths .