Skip to main content

startCase

_.startCase(string) # Ⓢ [Ⓣ][1] Ⓝ

Converts string to



start case.

Since​

3.1.0

Arguments​

  1. string (string): The string to convert.

Returns​

(string): Returns the start cased string.

Example​

_.startCase('--foo-bar--');
// => 'Foo Bar'

_.startCase('fooBar');
// => 'Foo Bar'

_.startCase('__FOO_BAR__');
// => 'FOO BAR'