mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Remove references to _.
This commit is contained in:
@@ -4,17 +4,16 @@ import createCaseFirst from './_createCaseFirst.js';
|
||||
* Converts the first character of `string` to upper case.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to convert.
|
||||
* @returns {string} Returns the converted string.
|
||||
* @example
|
||||
*
|
||||
* _.upperFirst('fred');
|
||||
* upperFirst('fred');
|
||||
* // => 'Fred'
|
||||
*
|
||||
* _.upperFirst('FRED');
|
||||
* upperFirst('FRED');
|
||||
* // => 'FRED'
|
||||
*/
|
||||
const upperFirst = createCaseFirst('toUpperCase');
|
||||
|
||||
Reference in New Issue
Block a user