2 * Converts `value` to a string if it is not one. An empty string is returned
3 * for `null` or `undefined` values.
6 * @param {*} value The value to process.
7 * @returns {string} Returns the string.
9 function baseToString(value) {
10 if (typeof value == 'string') {
13 return value == null ? '' : (value + '');
16 module.exports = baseToString;