✏️ 编辑:upperCase.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/upperCase.js
大小:620 B · 修改:2022-11-21 20:09:56 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
var createCompounder = require('./_createCompounder'); /** * Converts `string`, as space separated words, to upper case. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the upper cased string. * @example * * _.upperCase('--foo-bar'); * // => 'FOO BAR' * * _.upperCase('fooBar'); * // => 'FOO BAR' * * _.upperCase('__foo_bar__'); * // => 'FOO BAR' */ var upperCase = createCompounder(function(result, word, index) { return result + (index ? ' ' : '') + word.toUpperCase(); }); module.exports = upperCase;
💾 保存
取消
保存为 UTF-8,换行统一为 LF