source: node_modules/es-toolkit/dist/compat/string/toUpper.d.mts@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 468 bytes
Line 
1/**
2 * Converts `string`, as a whole, to upper case just like
3 * [String#toUpperCase](https://mdn.io/toUpperCase).
4 *
5 * @param {unknown} [value=''] The value to convert.
6 * @returns {string} Returns the upper cased string.
7 * @example
8 *
9 * toUpper('--foo-bar--');
10 * // => '--FOO-BAR--'
11 *
12 * toUpper(null);
13 * // => ''
14 *
15 * toUpper([1, 2, 3]);
16 * // => '1,2,3'
17 */
18declare function toUpper<T extends string = string>(value?: T): Uppercase<T>;
19
20export { toUpper };
Note: See TracBrowser for help on using the repository browser.