function extractGroup([appName, { build, start }], index, [[, config]]) {
  if (index === 0) {
    return { build, start };
  }

  return {
    appName,
    build: config.build ? undefined : build,
    start: config.start ? undefined : start
  };
}
@param {[string | undefined, any]} script
@param {number} index
@param {[string | undefined, any][]} array
@returns {DetoxInternals.RuntimeCommandsGroup}