UNPKG

nodegit-flow

Version:

nodegit-flow contains gitflow methods that aren't include in the vanilla nodegit package

10 lines (9 loc) 281 B
"use strict"; const noOpProperties = ['arguments', 'caller', 'callee']; module.exports = function (to, from) { Object.getOwnPropertyNames(from).forEach(key => { if (!~noOpProperties.indexOf(key) && typeof from[key] === 'function') { to[key] = from[key]; } }); };