|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
514 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Converts the given value to a string and transforms it to lower case.
|
|---|
| 3 | * The function can handle various input types by first converting them to strings.
|
|---|
| 4 | *
|
|---|
| 5 | * @param {unknown} [value=''] The value to convert.
|
|---|
| 6 | * @returns {string} Returns the lower cased string.
|
|---|
| 7 | * @example
|
|---|
| 8 | *
|
|---|
| 9 | * toLower('--FOO-BAR--');
|
|---|
| 10 | * // => '--foo-bar--'
|
|---|
| 11 | *
|
|---|
| 12 | * toLower(null);
|
|---|
| 13 | * // => ''
|
|---|
| 14 | *
|
|---|
| 15 | * toLower([1, 2, 3]);
|
|---|
| 16 | * // => '1,2,3'
|
|---|
| 17 | */
|
|---|
| 18 | declare function toLower<T extends string = string>(value?: T): Lowercase<T>;
|
|---|
| 19 |
|
|---|
| 20 | export { toLower };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.