mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Use array prototype instead of creating instance
This commit is contained in:
@@ -18,5 +18,5 @@ export function equals<T>(
|
||||
}
|
||||
|
||||
export function flatten<T>(arr: ReadonlyArray<T>[]): T[] {
|
||||
return ([] as T[]).concat.apply([], arr);
|
||||
return Array.prototype.concat.apply([], arr);
|
||||
}
|
||||
Reference in New Issue
Block a user