mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
21
react-app/node_modules/lodash/string/capitalize.js
generated
vendored
Normal file
21
react-app/node_modules/lodash/string/capitalize.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
var baseToString = require('../internal/baseToString');
|
||||
|
||||
/**
|
||||
* Capitalizes the first character of `string`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to capitalize.
|
||||
* @returns {string} Returns the capitalized string.
|
||||
* @example
|
||||
*
|
||||
* _.capitalize('fred');
|
||||
* // => 'Fred'
|
||||
*/
|
||||
function capitalize(string) {
|
||||
string = baseToString(string);
|
||||
return string && (string.charAt(0).toUpperCase() + string.slice(1));
|
||||
}
|
||||
|
||||
module.exports = capitalize;
|
Reference in New Issue
Block a user