chore: fixes some issues that happen with closure compiler. (#10392)

This commit is contained in:
Hans
2016-08-01 09:47:49 -07:00
committed by GitHub
parent f9573ece41
commit 4df7b1cfbc
3 changed files with 11 additions and 11 deletions

View File

@ -222,6 +222,6 @@ function _lastDefined<T>(args: T[]): T {
function _mergeArrays(parts: any[][]): any[] {
let result: any[] = [];
parts.forEach((part) => result.push(...part));
parts.forEach((part) => part && result.push(...part));
return result;
}