Bones/node_modules/fs-extra/lib/util/assign.js
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

17 lines
286 B
JavaScript

'use strict'
// simple mutable assign
function assign () {
const args = [].slice.call(arguments).filter(i => i)
const dest = args.shift()
args.forEach(src => {
Object.keys(src).forEach(key => {
dest[key] = src[key]
})
})
return dest
}
module.exports = assign