fix(core): Don't use ES6 spread operator when undefined is allowed.
Workaround a closure bug where it doesn't produce the right code ES6 operator when the array value can be undefined.
This commit is contained in:
parent
4ef86891a3
commit
2ff83324af
|
@ -145,6 +145,6 @@ function _firstDefined<T>(...args: T[]): T {
|
|||
|
||||
function _mergeArrays(...parts: any[][]): any[] {
|
||||
let result: any[] = [];
|
||||
parts.forEach((part) => result.push(...part));
|
||||
parts.forEach((part) => result.push.apply(result, part));
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue