mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2025-01-14 21:07:26 -08:00
74eb5fa045
- `example/proxy` is new folder for `example_proxy`. - `riven` is new folder for the main riven lib. - Updated metadata to be an array and include HTTP method.
17 lines
304 B
JavaScript
17 lines
304 B
JavaScript
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)
|
|
}
|