nodegit
Version:
Node.js libgit2 asynchronous native bindings
16 lines (12 loc) • 351 B
JavaScript
;
var NodeGit = require("../../");
function shallowClone() {
var merges = Array.prototype.slice.call(arguments);
return merges.reduce(function (obj, merge) {
return Object.keys(merge).reduce(function (obj, key) {
obj[key] = merge[key];
return obj;
}, obj);
}, {});
}
NodeGit.Utils.shallowClone = shallowClone;