]> git.r.bdr.sh - rbdr/dotfiles/blob
cf8ed8d38cabd1c9b5ce8d653c084a36447c1422
[rbdr/dotfiles] /
1 'use strict';
2
3 var forEach = Array.prototype.forEach, create = Object.create;
4
5 var process = function (src, obj) {
6 var key;
7 for (key in src) obj[key] = src[key];
8 };
9
10 module.exports = function (options/*, …options*/) {
11 var result = create(null);
12 forEach.call(arguments, function (options) {
13 if (options == null) return;
14 process(Object(options), result);
15 });
16 return result;
17 };