mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Clarify baseToString and other converter method docs. [ci skip]
This commit is contained in:
14
lodash.js
14
lodash.js
@@ -790,12 +790,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts `value` to a string if it's not one. An empty string is returned
|
* Converts `value` to a string. An empty string is returned for `null`
|
||||||
* for `null` or `undefined` values.
|
* and `undefined` values.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} value The value to process.
|
* @param {*} value The value to convert.
|
||||||
* @returns {string} Returns the string.
|
* @returns {string} Returns the converted string.
|
||||||
*/
|
*/
|
||||||
function baseToString(value) {
|
function baseToString(value) {
|
||||||
return value == null ? '' : (value + '');
|
return value == null ? '' : (value + '');
|
||||||
@@ -4488,7 +4488,7 @@
|
|||||||
* Converts `string` to a property path array.
|
* Converts `string` to a property path array.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {string} string The string to process.
|
* @param {string} string The string to convert.
|
||||||
* @returns {Array} Returns the property path array.
|
* @returns {Array} Returns the property path array.
|
||||||
*/
|
*/
|
||||||
function stringToPath(string) {
|
function stringToPath(string) {
|
||||||
@@ -4503,7 +4503,7 @@
|
|||||||
* Converts `value` to a function if it's not one.
|
* Converts `value` to a function if it's not one.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} value The value to process.
|
* @param {*} value The value to convert.
|
||||||
* @returns {Function} Returns the function.
|
* @returns {Function} Returns the function.
|
||||||
*/
|
*/
|
||||||
function toFunction(value) {
|
function toFunction(value) {
|
||||||
@@ -11697,7 +11697,7 @@
|
|||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Utility
|
* @category Utility
|
||||||
* @param {*} value The value to process.
|
* @param {*} value The value to convert.
|
||||||
* @returns {Array} Returns the new property path array.
|
* @returns {Array} Returns the new property path array.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user