index.js
function validateTableConfig(obj) {  
  /** If configuration has missing or invalid 'tableName' configuration, throw error */
  if ( typeof obj.tableName !== `string` || !obj.tableName.match(/^[a-z_]+$/) )
    throw new Error(`ezobjects.validateTableConfig(): Configuration has missing or invalid 'tableName', must be string containing characters 'a-z_'.`);

  validateClassConfig(obj);
}
function validateTableConfig(obj) {  
  /** If configuration has missing or invalid 'tableName' configuration, throw error */
  if ( typeof obj.tableName !== `string` || !obj.tableName.match(/^[a-z_]+$/) )
    throw new Error(`ezobjects.validateTableConfig(): Configuration has missing or invalid 'tableName', must be string containing characters 'a-z_'.`);

  validateClassConfig(obj);
}
function validateTableConfig ( obj ) { /** If configuration has missing or invalid 'tableName' configuration, throw error */ if ( typeof obj . tableName !== ` ` || ! obj . tableName . match ( / ^[a-z_]+$ / ) ) throw new Error ( ` ` ) ; validateClassConfig ( obj ) ; }
Validate configuration for a creating MySQL table based on class configuration
Validate configuration for a creating MySQL table based on class configuration