1/** 2 * lodash 3.0.0 (Custom Build) <https://lodash.com/> 3 * Build: `lodash modern modularize exports="npm" -o ./` 4 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> 5 * Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> 6 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 7 * Available under MIT license <https://lodash.com/license> 8 */ 9 10/** 11 * Converts `value` to a string if it is not one. An empty string is returned 12 * for `null` or `undefined` values. 13 * 14 * @private 15 * @param {*} value The value to process. 16 * @returns {string} Returns the string. 17 */ 18function baseToString(value) { 19 if (typeof value == 'string') { 20 return value; 21 } 22 return value == null ? '' : (value + ''); 23} 24 25module.exports = baseToString; 26 27