Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/lodash/capitalize.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/lodash/capitalize.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject/masteringModule/node_modules/lodash/capitalize.js
-
curl -L -o capitalize.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/lodash/capitalize.js
529 Bytes
| var toString = require('./toString'), | |
| upperFirst = require('./upperFirst'); | |
| /** | |
| * Converts the first character of `string` to upper case and the remaining | |
| * to lower case. | |
| * | |
| * @static | |
| * @memberOf _ | |
| * @since 3.0.0 | |
| * @category String | |
| * @param {string} [string=''] The string to capitalize. | |
| * @returns {string} Returns the capitalized string. | |
| * @example | |
| * | |
| * _.capitalize('FRED'); | |
| * // => 'Fred' | |
| */ | |
| function capitalize(string) { | |
| return upperFirst(toString(string).toLowerCase()); | |
| } | |
| module.exports = capitalize; | |