Function formatBytes

  • Format bytes to human readable string

    Parameters

    • bytes: number
    • decimals: number = 2

    Returns string