mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-19 14:22:19 +01:00
13 lines
500 B
TypeScript
13 lines
500 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
'use strict';
|
|
|
|
export function pushAll<T>(to: T[], from: T[]) {
|
|
if (from) {
|
|
for (var i = 0; i < from.length; i++) {
|
|
to.push(from[i]);
|
|
}
|
|
}
|
|
} |