20 lines
670 B
JavaScript
20 lines
670 B
JavaScript
const require_lowerFirst = require("../../string/lowerFirst.js");
|
|
const require_toString = require("../util/toString.js");
|
|
//#region src/compat/string/lowerFirst.ts
|
|
/**
|
|
* Converts the first character of string to lower case.
|
|
*
|
|
* @param {string} str - The string that is to be changed
|
|
* @returns {string} - The converted string.
|
|
*
|
|
* @example
|
|
* const convertedStr1 = lowerCase('fred') // returns 'fred'
|
|
* const convertedStr2 = lowerCase('Fred') // returns 'fred'
|
|
* const convertedStr3 = lowerCase('FRED') // returns 'fRED'
|
|
*/
|
|
function lowerFirst(str) {
|
|
return require_lowerFirst.lowerFirst(require_toString.toString(str));
|
|
}
|
|
//#endregion
|
|
exports.lowerFirst = lowerFirst;
|