initial commit
This commit is contained in:
17
node_modules/upper-case-first/upper-case-first.js
generated
vendored
Normal file
17
node_modules/upper-case-first/upper-case-first.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var upperCase = require('upper-case')
|
||||
|
||||
/**
|
||||
* Upper case the first character of a string.
|
||||
*
|
||||
* @param {String} str
|
||||
* @return {String}
|
||||
*/
|
||||
module.exports = function (str, locale) {
|
||||
if (str == null) {
|
||||
return ''
|
||||
}
|
||||
|
||||
str = String(str)
|
||||
|
||||
return upperCase(str.charAt(0), locale) + str.substr(1)
|
||||
}
|
||||
Reference in New Issue
Block a user