summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/cli-table2/node_modules/lodash/math/add.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/cli-table2/node_modules/lodash/math/add.js')
-rw-r--r--deps/npm/node_modules/cli-table2/node_modules/lodash/math/add.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/deps/npm/node_modules/cli-table2/node_modules/lodash/math/add.js b/deps/npm/node_modules/cli-table2/node_modules/lodash/math/add.js
new file mode 100644
index 0000000000..59ced2fb6e
--- /dev/null
+++ b/deps/npm/node_modules/cli-table2/node_modules/lodash/math/add.js
@@ -0,0 +1,19 @@
+/**
+ * Adds two numbers.
+ *
+ * @static
+ * @memberOf _
+ * @category Math
+ * @param {number} augend The first number to add.
+ * @param {number} addend The second number to add.
+ * @returns {number} Returns the sum.
+ * @example
+ *
+ * _.add(6, 4);
+ * // => 10
+ */
+function add(augend, addend) {
+ return (+augend || 0) + (+addend || 0);
+}
+
+module.exports = add;