export function assign(target: T, ...sourceList: Array | undefined>) { sourceList.forEach( source => Object.assign(target, source) ) return target }