src/utils.js
/**
 * Join all paths to the given base path.
 *
 * @return {Array<string>} An array including all the paths that are joined with the given base path.
 *
 * @param {string} basePath The path that is used for all paths as base path for join operations.
 * @param {Array<string>} paths An array of paths that will be joint with the given base path.
 */
Join all paths to the given base path.
@return {Array} An array including all the paths that are joined with the given base path.

@param {string} basePath The path that is used for all paths as base path for join operations.
@param {Array} paths An array of paths that will be joint with the given base path.
Join all paths to the given base path . @return { Array } An array including all the paths that are joined with the given base path . @param { string } basePath The path that is used for all paths as base path for join operations . @param { Array } paths An array of paths that will be joint with the given base path .
function joinPaths (basePath, paths) {
    if (!util.isString(basePath) || basePath.length === 0 || !isStringArray(paths)) {
        if (!isStringArray(paths)) return [];
        else return paths.slice();
    }
    return paths.map(function (p) {
        if ( (path).isAbsolute(p)) return p;
        return path.join(basePath, p);
    });
}
function joinPaths ( basePath , paths ) { if ( ! util . isString ( basePath ) || basePath . length === 0 || ! isStringArray ( paths ) ) { if ( ! isStringArray ( paths ) ) return [ ] ; else return paths . slice ( ) ; } return paths . map ( function ( p ) { if ( ( path ) . isAbsolute ( p ) ) return p ; return path . join ( basePath , p ) ; } ) ; }
Join all paths to the given base path.
Join all paths to the given base path .
/** @type {{isAbsolute: function(string):boolean}} */