Function lowerCase

  • Converts string, as space separated words, to lower case.

    Parameters

    • str: string

      The string to convert.

    Returns string

    Returns the lower cased string.

    Since

    5.6.0

    See

    camelCase, kebabCase, snakeCase, startCase, upperCase, upperFirst

    Example

    lowerCase('--Foo-Bar--')
    // => 'foo bar'

    lowerCase('fooBar')
    // => 'foo bar'

    lowerCase('__FOO_BAR__')
    // => 'foo bar'