mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
329 B
14 lines
329 B
10 years ago
|
/**
|
||
|
* Converts `value` to a string if it's not one. An empty string is returned
|
||
|
* for `null` or `undefined` values.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to process.
|
||
|
* @returns {string} Returns the string.
|
||
|
*/
|
||
|
function baseToString(value) {
|
||
|
return value == null ? '' : (value + '');
|
||
|
}
|
||
|
|
||
|
module.exports = baseToString;
|