UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

17 lines (13 loc) 286 B
'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