UNPKG

@visulima/string

Version:

Functions for manipulating strings.

12 lines (10 loc) 460 B
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"); export { lowerFirst as default };