@newdash/newdash
Version:
javascript/typescript utility library
24 lines (23 loc) • 552 B
TypeScript
/**
* Converts `string`, as space separated words, to upper case.
*
* @since 5.13.0
* @category String
* @param str The string to convert.
* @returns {string} Returns the upper cased string.
* @see [[camelCase]], [[kebabCase]], [[lowerCase]], [[snakeCase]], [[startCase]], [[upperFirst]]
* @example
*
* ```js
* upperCase('--foo-bar')
* // => 'FOO BAR'
*
* upperCase('fooBar')
* // => 'FOO BAR'
*
* upperCase('__foo_bar__')
* // => 'FOO BAR'
* ```
*/
export declare function upperCase(str: string): string;
export default upperCase;