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