Initial commit
[yaffs-website] / node_modules / lodash._basetostring / index.js
1 /**
2  * lodash 3.0.1 (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.8.3 <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's 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  */
18 function baseToString(value) {
19   return value == null ? '' : (value + '');
20 }
21
22 module.exports = baseToString;