packages/create-react-scripts/compose.js
function mergeScripts(crsScripts) {
  const scripts = {
    build: path.join(__dirname, 'scripts/build.js'),
    start: path.join(__dirname, 'scripts/start.js'),
    test: path.join(__dirname, 'scripts/test.js'),
  };
  crsScripts.forEach(scriptSet => {
    Object.assign(scripts, scriptSet || {});
  });
  return scripts;
}
function mergeScripts(crsScripts) {
  const scripts = {
    build: path.join(__dirname, 'scripts/build.js'),
    start: path.join(__dirname, 'scripts/start.js'),
    test: path.join(__dirname, 'scripts/test.js'),
  };
  crsScripts.forEach(scriptSet => {
    Object.assign(scripts, scriptSet || {});
  });
  return scripts;
}
function mergeScripts ( crsScripts ) { const scripts = { build : path . join ( __dirname , 'scripts/build.js' ) , start : path . join ( __dirname , 'scripts/start.js' ) , test : path . join ( __dirname , 'scripts/test.js' ) , } ; crsScripts . forEach ( scriptSet => { Object . assign ( scripts , scriptSet || { } ) ; } ) ; return scripts ; }
merge scripts and remove the duplicates do not use recursion here to prevent maximum call stack
merge scripts and remove the duplicates do not use recursion here to prevent maximum call stack