summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lodash._basetostring/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lodash._basetostring/index.js')
-rw-r--r--deps/npm/node_modules/lodash._basetostring/index.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/deps/npm/node_modules/lodash._basetostring/index.js b/deps/npm/node_modules/lodash._basetostring/index.js
new file mode 100644
index 0000000000..db8ecc9fdd
--- /dev/null
+++ b/deps/npm/node_modules/lodash._basetostring/index.js
@@ -0,0 +1,22 @@
+/**
+ * lodash 3.0.1 (Custom Build) <https://lodash.com/>
+ * Build: `lodash modern modularize exports="npm" -o ./`
+ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
+ * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ * Available under MIT license <https://lodash.com/license>
+ */
+
+/**
+ * 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;