Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/tsafe/uncapitalize.ts

🔩 The missing TypeScript utils
Go to Latest
File
/** @see <https://docs.tsafe.dev/capitalize#uncapitalize> */export function uncapitalize<S extends string>(str: S): Uncapitalize<S> { // eslint-disable-next-line @typescript-eslint/no-explicit-any return (str.charAt(0).toLowerCase() + str.slice(1)) as any;}