node_modules.lower-case-first.lower-case-first.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-client-maven-plugin Show documentation
Show all versions of apollo-client-maven-plugin Show documentation
Maven plugin for generating graphql clients
The newest version!
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)
}