MCPcopy Create free account
hub / github.com/Effect-TS/effect / uncapitalize

Function uncapitalize

packages/effect/src/String.ts:227–231  ·  view source on GitHub ↗
(self: T)

Source from the content-addressed store, hash-verified

225 * @since 2.0.0
226 */
227export const uncapitalize = <T extends string>(self: T): Uncapitalize<T> => {
228 if (self.length === 0) return self as Uncapitalize<T>
229
230 return (toLowerCase(self[0]) + self.slice(1)) as Uncapitalize<T>
231}
232
233/**
234 * Replaces matches in a string using `String.prototype.replace`.

Callers

nothing calls this directly

Calls 1

toLowerCaseFunction · 0.70

Tested by

no test coverage detected