Docs@skmtc/core

Names

FUNCTION

decapitalize

@skmtc/core 0.63.4

Decapitalizes (lowercases) the first character of a string.

Signature

import { decapitalize } from '@skmtc/core'

decapitalize(str: string): string

Parameters

str, string required

The string to decapitalize

Example
decapitalize('Hello World'); // 'hello World'
decapitalize('API'); // 'aPI'
decapitalize(''); // ''

Returns

string

The string with the first character lowercased