src/table/table.js
/**
   * Print the contents of this table using the console.table() method.
   * @param {PrintOptions|number} options The options for row object
   *  generation, determining which rows and columns are printed. If
   *  number-valued, specifies the row limit.
   */
Print the contents of this table using the console.table() method.
@param {PrintOptions|number} options The options for row object
generation, determining which rows and columns are printed. If
number-valued, specifies the row limit.
Print the contents of this table using the console . table () method . @param { PrintOptions|number } options The options for row object generation determining which rows and columns are printed . If number - valued specifies the row limit .
print(options = {}) {
    if (isNumber(options)) {
      options = { limit: options };
    } else if (options.limit == null) {
      options.limit = 10;
    }
    const obj = this.objects({ ...options, grouped: false });
    const msg = `${this[Symbol.toStringTag]}. Showing ${obj.length} rows.`;
    console.log(msg);   
    console.table(obj); 
  }
print ( options = { } ) { if ( isNumber ( options ) ) { options = { limit : options } ; } else if ( options . limit == null ) { options . limit = 10 ; } const obj = this . objects ( { ... options , grouped : false } ) ; const msg = ` ${ this [ Symbol . toStringTag ] } ${ obj . length } ` ; console . log ( msg ) ; console . table ( obj ) ; }
Print the contents of this table using the console.table() method.
Print the contents of this table using the console . table () method .
// eslint-disable-line no-console // eslint-disable-line no-console