UNPKG

@rtinternal/nodegit

Version:

Node.js libgit2 asynchronous native bindings

15 lines (11 loc) 335 B
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;