Riven/riven/srcgen/node_modules/lower-case-first/lower-case-first.js
Mingwei Samuel 74eb5fa045 Update example proxy for v2, use workspaces.
- `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.
2021-09-09 14:31:39 -07:00

17 lines
304 B
JavaScript

var lowerCase = require('lower-case')
/**
* Lower 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 lowerCase(str.charAt(0), locale) + str.substr(1)
}