UNPKG

voca

Version:

The ultimate JavaScript string library

28 lines (24 loc) 627 B
import './internal/is_nil.js'; import './is_string.js'; import { c as coerceToString } from './internal/coerce_to_string.js'; /** * Converts the `subject` to lower case. * * @function lowerCase * @static * @since 1.0.0 * @memberOf Case * @param {string} [subject=''] The string to convert to lower case. * @return {string} Returns the lower case string. * @example * v.lowerCase('Green'); * // => 'green' * * v.lowerCase('BLUE'); * // => 'blue' */ function lowerCase(subject) { var subjectString = coerceToString(subject, ''); return subjectString.toLowerCase(); } export default lowerCase;