( initialValue: T, ...sources: Array<T> )
| 27 | * @internal |
| 28 | */ |
| 29 | export function assign<T extends object>( |
| 30 | initialValue: T, |
| 31 | ...sources: Array<T> |
| 32 | ): T { |
| 33 | for (const source of sources) { |
| 34 | for (const key of Object.keys(source)) { |
| 35 | const value = (source as any)[key]; |
| 36 | if (value !== undefined) (initialValue as any)[key] = value; |
| 37 | } |
| 38 | } |
| 39 | return initialValue; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Split a string array of values |
no outgoing calls
no test coverage detected
searching dependent graphs…