Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / assignDefaults.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/assignDefaults.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/assignDefaults.js
new file mode 100644 (file)
index 0000000..affd993
--- /dev/null
@@ -0,0 +1,13 @@
+/**
+ * Used by `_.defaults` to customize its `_.assign` use.
+ *
+ * @private
+ * @param {*} objectValue The destination object property value.
+ * @param {*} sourceValue The source object property value.
+ * @returns {*} Returns the value to assign to the destination object.
+ */
+function assignDefaults(objectValue, sourceValue) {
+  return objectValue === undefined ? sourceValue : objectValue;
+}
+
+module.exports = assignDefaults;