format (number, decimals) {
    if (number == null) return number
    if (decimals == null) decimals = 0
    return number.toFixed(decimals)
  }
/**
   * Helper function to format a number to not have decimals.
   *
   * @param {*} number
   */
Helper function to format a number to not have decimals.
@param {*} number
Helper function to format a number to not have decimals . @param { * } number
format (number, decimals) {
    if (number == null) return number
    if (decimals == null) decimals = 0
    return number.toFixed(decimals)
  }
format ( number , decimals ) { if ( number == null ) return number if ( decimals == null ) decimals = 0 return number . toFixed ( decimals ) }
Helper function to format a number to not have decimals.
Helper function to format a number to not have decimals .