14 lines
337 B
JavaScript
14 lines
337 B
JavaScript
'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;
|
|
};
|