UNPKG

@bearz/strings

Version:

A collection of string utilities to avoid extra allocations and enable case insensitivity comparisons.

14 lines (13 loc) 510 B
/** * This module provides a function to capitalize the first letter of a string. * It is primarily used for converting code to capitalized case. * @module */ import { type CapitalizeOptions } from "@bearz/slices/capitalize"; /** * Capitalizes the first letter of the string. * @param value The string to capitalize. * @param options The options for capitalizing the string. * @returns The capitalized string. */ export declare function capitalize(value: string, options?: CapitalizeOptions): string;