common-stuff
    Preparing search index...

    Function formatBytes

    • Converts bytes number to string representation (e.g. 15.25 GB).

      Parameters

      • bytes: number
      • decimals: number = 2

      Returns string

      formatBytes(1648 * 9884)
      // '15.53 MB'