UNPKG

@visulima/string

Version:

Functions for manipulating strings.

14 lines (11 loc) 470 B
'use strict'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); const lowerFirst = /* @__PURE__ */ __name((value, options) => { if (typeof value !== "string" || value === "") { return ""; } const firstChar = options?.locale ? value[0].toLocaleLowerCase(options.locale) : value[0].toLowerCase(); return firstChar + value.slice(1); }, "lowerFirst"); module.exports = lowerFirst;