Function transferTemperature

  • 华氏/摄氏度互转

    Parameters

    • temperature: string | number
    • isCelsius: boolean = true
    • addSuffix: boolean = true

    Returns string | number

    transferTemperature(30.5); /// '86.9 °F'
    transferTemperature(86, false, false); /// 30