Clarify baseToString and other converter method docs. [ci skip]

This commit is contained in:
John-David Dalton
2015-09-22 00:29:32 -07:00
parent b5bbc18c89
commit ba9cfc3b26

View File

@@ -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
* *