function isValidProject(project) {
  const isValid = VALID_TRACKING_PROJECTS.indexOf(project) !== -1;
  if (!isValid) {
    console.log(chalk.red('Tracking Error:'));
    console.log(`"${project}" is invalid project. Must be one of`, VALID_TRACKING_PROJECTS);
  }
  return isValid;
}
function isValidProject(project) {
  const isValid = VALID_TRACKING_PROJECTS.indexOf(project) !== -1;
  if (!isValid) {
    console.log(chalk.red('Tracking Error:'));
    console.log(`"${project}" is invalid project. Must be one of`, VALID_TRACKING_PROJECTS);
  }
  return isValid;
}
function isValidProject ( project ) { const isValid = VALID_TRACKING_PROJECTS . indexOf ( project ) !== - 1 ; if ( ! isValid ) { console . log ( chalk . red ( 'Tracking Error:' ) ) ; console . log ( ` ${ project } ` , VALID_TRACKING_PROJECTS ) ; } return isValid ; }
Validate tracking project for clean events
Validate tracking project for clean events
Check if the project is valid