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:
Vikram Subramanian 2016-07-11 17:25:40 -07:00
parent 4ef86891a3
commit 2ff83324af
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}