UNPKG

voca

Version:

The ultimate JavaScript string library

25 lines (21 loc) 582 B
import './internal/is_nil.js'; import './is_string.js'; import { c as coerceToString } from './internal/coerce_to_string.js'; /** * Converts the `subject` to upper case. * * @function upperCase * @static * @since 1.0.0 * @memberOf Case * @param {string} [subject=''] The string to convert to upper case. * @return {string} Returns the upper case string. * @example * v.upperCase('school'); * // => 'SCHOOL' */ function upperCase(subject) { var subjectString = coerceToString(subject); return subjectString.toUpperCase(); } export default upperCase;