The strLower() method returns the value of the string converted to lower case. strLower() does not affect the value of the string str itself.

0.9.0

TypeError - When called on null or undefined.

strLower("Hello");       // hello
strLower("darkness"); // darkness

strLower(null); // Throws TypeError
strLower(undefined); // Throws TypeError
  • Type Parameters

    • T

    Parameters

    • value: T

    Returns string

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