UNPKG

npmcs

Version:

Segregrate your npm scripts for windows and linux and run with one command.

7 lines (6 loc) 156 B
module.exports = function assign (to, from, replace = true) { for (let key in from) { if (to[key] && !replace) continue to[key] = from[key] } }