Function isUpper

  • Check that a string only consists of uppercase characters

        isUpper("abcdefghijKlmnopqrstuvxyz") // => true
    isUpper("ABCDEFGHIJKLmNOPQRSTUVXYZ") // => false
    isUpper("=") // => false

    Returns

    true if it only contains uppercase characters.

    Parameters

    • string: string

      the string of characters

    Returns boolean