Function checkPercent

  • Check whether the number is a percentage.

    Parameters

    • num: number

      The number to check.

    Returns boolean

    Return true if the number is a percentage.