CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
toUpper.js29 linesDownload Raw Back to lodash-es
1import toString from './toString.js';2 3/**4 * Converts `string`, as a whole, to upper case just like5 * [String#toUpperCase](https://mdn.io/toUpperCase).6 *7 * @static8 * @memberOf _9 * @since 4.0.010 * @category String11 * @param {string} [string=''] The string to convert.12 * @returns {string} Returns the upper cased string.13 * @example14 *15 * _.toUpper('--foo-bar--');16 * // => '--FOO-BAR--'17 *18 * _.toUpper('fooBar');19 * // => 'FOOBAR'20 *21 * _.toUpper('__foo_bar__');22 * // => '__FOO_BAR__'23 */24function toUpper(value) {25  return toString(value).toUpperCase();26}27 28export default toUpper;29 
basant307/AI_Governance_Project · CoolFace