biofriction-wp-theme/node_modules/fs-extra/lib/util/assign.js

17 lines
286 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
'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