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

0.9.0

TypeError - When called on null or undefined.

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

strUpper(null); // Throws TypeError
strUpper(undefined); // Throws TypeError
  • 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.