Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / math / add.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/math/add.js b/node_modules/grunt-legacy-log/node_modules/lodash/math/add.js
new file mode 100644 (file)
index 0000000..59ced2f
--- /dev/null
@@ -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;