fix: append large parser collections safely
This commit is contained in:
9
src/onenote/model/append.ts
Normal file
9
src/onenote/model/append.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// 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 https://mozilla.org/MPL/2.0/.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
/** Append a bounded collection without relying on the engine's argument cap. */
|
||||
export function appendItems<T>(target: T[], items: readonly T[]): void {
|
||||
for (const item of items) target.push(item);
|
||||
}
|
||||
Reference in New Issue
Block a user