@dulysse1/better-node
Version:
Improve Node types & add object properties
15 lines (14 loc) • 370 B
TypeScript
interface String {
/**
* @from `@dulysse1/better-node`
* ### Uncapitalized your string
* @param firstChar Does the first character have to be uncapitalized ?
* @default true
* @param sep Your Uncapitalized separator
* @returns {string} Your string uncapitalized
*/
uncapitalized<T extends "-" | "_" | " ">(
sep?: T,
firstChar?: boolean
): string;
}