@newdash/newdash
Version:
javascript/typescript utility library
23 lines (22 loc) • 562 B
TypeScript
/**
* Converts `string` to
* [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
*
* @since 3.1.0
* @category String
* @param s The string to convert.
* @returns {string} Returns the start cased string.
* @see camelCase, lowerCase, kebabCase, snakeCase, upperCase, upperFirst
* @example
*
* startCase('--foo-bar--')
* // => 'Foo Bar'
*
* startCase('fooBar')
* // => 'Foo Bar'
*
* startCase('__FOO_BAR__')
* // => 'FOO BAR'
*/
export declare function startCase(s?: string): string;
export default startCase;