@visulima/string
Version:
Functions for manipulating strings.
16 lines (15 loc) • 629 B
TypeScript
import { L as LocaleOptions, e as LowerFirst } from "../packem_shared/types.d-fhe030jX.js";
import "../packem_shared/types.d-CmNvyl4l.js";
/**
* Converts first character to lower case.
* @param value The string to convert.
* @param options Options for case conversion.
* @returns The string with its first character converted to lowercase.
* @example
* ```typescript
* lowerFirst("Hello world!") // => "hello world!"
* lowerFirst("İSTANBUL", { locale: "tr" }) // => "istanbul"
* ```
*/
declare const lowerFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => LowerFirst<T>;
export { lowerFirst as default };