Files
huishou/node_modules/nodegit/dist/utils/shallow_clone.js
T
2026-07-27 13:37:48 +08:00

16 lines
351 B
JavaScript

"use strict";
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;