Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / baseToString.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/baseToString.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/baseToString.js
new file mode 100644 (file)
index 0000000..b802640
--- /dev/null
@@ -0,0 +1,13 @@
+/**
+ * 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;