(
target: { [key: string]: any },
...sources: Array<{ [key: string]: any }>
)
| 16 | ): A & B & C & D & E; |
| 17 | export function assign(target: any, ...sources: Array<any>): any; |
| 18 | export function assign( |
| 19 | target: { [key: string]: any }, |
| 20 | ...sources: Array<{ [key: string]: any }> |
| 21 | ): { [key: string]: any } { |
| 22 | sources.forEach(source => { |
| 23 | if (typeof source === 'undefined' || source === null) { |
| 24 | return; |
| 25 | } |
| 26 | Object.keys(source).forEach(key => { |
| 27 | target[key] = source[key]; |
| 28 | }); |
| 29 | }); |
| 30 | return target; |
| 31 | } |
no outgoing calls