Converts `string`, as space separated words, to lower case.
lowerCase('--Foo-Bar--')
// => 'foo bar'
lowerCase('fooBar')
// => 'foo bar'
lowerCase('__FOO_BAR__')
// => 'foo bar'
Name | Type | Attribute | Description |
---|---|---|---|
string | The string to convert. |
{ "comment": "/**\r\n * Converts `string`, as space separated words, to lower case.\r\n *\r\n * @since 4.0.0\r\n * @category String\r\n * @param {string} [string=''] The string to convert.\r\n * @returns {string} Returns the lower cased string.\r\n * @see camelCase, kebabCase, snakeCase, startCase, upperCase, upperFirst\r\n * @example\r\n *\r\n * lowerCase('--Foo-Bar--')\r\n * // => 'foo bar'\r\n *\r\n * lowerCase('fooBar')\r\n * // => 'foo bar'\r\n *\r\n * lowerCase('__FOO_BAR__')\r\n * // => 'foo bar'\r\n */", "meta": { "range": [ 507, 683 ], "filename": "lowerCase.js", "lineno": 22, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo", "code": { "id": "astnode100005671", "name": "lowerCase", "type": "ArrowFunctionExpression" }, "vars": { "": null } }, "description": "Converts `string`, as space separated words, to lower case.", "since": "4.0.0", "tags": [ { "originalTitle": "category", "title": "category", "text": "String", "value": "String" } ], "params": [ { "type": { "names": [ "string" ] }, "optional": true, "defaultvalue": "''", "description": "The string to convert.", "name": "string" } ], "returns": [ { "type": { "names": [ "string" ] }, "description": "Returns the lower cased string." } ], "see": [ "camelCase, kebabCase, snakeCase, startCase, upperCase, upperFirst" ], "examples": [ "lowerCase('--Foo-Bar--')\r// => 'foo bar'\r\rlowerCase('fooBar')\r// => 'foo bar'\r\rlowerCase('__FOO_BAR__')\r// => 'foo bar'" ], "name": "lowerCase", "longname": "lowerCase", "kind": "function", "scope": "global", "___id": "T000002R000528", "___s": true, "filepath": "lowerCase.js" }