All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lower-case-first.lower-case-first.js Maven / Gradle / Ivy

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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy