• The strUpper() method returns the calling string value converted to uppercase. (the value will be converted to a string if it isn't one).

    Type Parameters

    • T

    Parameters

    • value: T

      The string value to be converted to uppercase.

    Returns string

    A new string representing the calling string converted to upper case.

    Since

    0.9.0

    Throws

    TypeError - When called on null or undefined.

    Example

    strUpper("Hello");       // HELLO
    strUpper("darkness"); // DARKNESS

    strUpper(null); // Throws TypeError
    strUpper(undefined); // Throws TypeError