recital / core / src / tools / concat-in-place.ts
concat-in-place.ts
Raw
/**
 * Copyright (c) 2022 Amorphous
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

export const concatInPlace = (arrayToModify: any[], arrayToSplice: any[]) => {
	for (let item of arrayToSplice) {
		arrayToModify.push(item)
	}
}