mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-30 18:23:22 +03:00
b1cb93355a
* feat(lowerCase): Add lowerCase function * Update docs/ko/reference/string/lowerCase.md * Update docs/ko/reference/string/lowerCase.md * Update docs/reference/string/lowerCase.md Co-authored-by: Evan Moon <bboydart91@gmail.com> --------- Co-authored-by: Sojin Park <raon0211@gmail.com> Co-authored-by: Evan Moon <bboydart91@gmail.com> Co-authored-by: Sojin Park <raon0211@toss.im>
704 B
704 B
lowerCase
Converts a string to lower case.
Lower case is the naming convention in which each word is written in lowercase and separated by an space ( ) character. For example, lower case
.
Signature
function lowerCase(str: string): string;
Parameters
str
(string
): The string that is to be changed to lower case.
Returns
(string
) The converted string to lower case.
Examples
import { lowerCase } from 'es-toolkit/string';
lowerCase('camelCase'); // returns 'camel case'
lowerCase('some whitespace'); // returns 'some whitespace'
lowerCase('hyphen-text'); // returns 'hyphen text'
lowerCase('HTTPRequest'); // returns 'http request'