LearningSalesForceCommerceC.../storefront-reference-architecture/cartridges/modules/server/assign.js

14 lines
337 B
JavaScript
Raw Normal View History

2021-12-21 10:57:31 -08:00
'use strict';
module.exports = function () {
var result = {};
Array.prototype.forEach.call(arguments, function (argument) {
if (typeof argument === 'object') {
Object.keys(argument).forEach(function (key) {
result[key] = argument[key];
});
}
});
return result;
};