UNPKG

text-lower-case-first

Version:
13 lines (12 loc) 349 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.lowerCaseFirst = lowerCaseFirst; /** * Lower case the first character of an input string. */ function lowerCaseFirst(str) { // Handle null/undefined inputs gracefully if (!str) return ""; return str.charAt(0).toLowerCase() + str.substr(1); }