Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/cli-table2/node_modules/lodash/internal/baseToString.js')
-rw-r--r--node_modules/cli-table2/node_modules/lodash/internal/baseToString.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/cli-table2/node_modules/lodash/internal/baseToString.js b/node_modules/cli-table2/node_modules/lodash/internal/baseToString.js
new file mode 100644
index 000000000..b802640b5
--- /dev/null
+++ b/node_modules/cli-table2/node_modules/lodash/internal/baseToString.js
@@ -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;