main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
468 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import createCaseFirst from './_createCaseFirst.js';
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Converts the first character of `string` to upper case.
|
---|
| 5 | *
|
---|
| 6 | * @static
|
---|
| 7 | * @memberOf _
|
---|
| 8 | * @since 4.0.0
|
---|
| 9 | * @category String
|
---|
| 10 | * @param {string} [string=''] The string to convert.
|
---|
| 11 | * @returns {string} Returns the converted string.
|
---|
| 12 | * @example
|
---|
| 13 | *
|
---|
| 14 | * _.upperFirst('fred');
|
---|
| 15 | * // => 'Fred'
|
---|
| 16 | *
|
---|
| 17 | * _.upperFirst('FRED');
|
---|
| 18 | * // => 'FRED'
|
---|
| 19 | */
|
---|
| 20 | var upperFirst = createCaseFirst('toUpperCase');
|
---|
| 21 |
|
---|
| 22 | export default upperFirst;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.