//#region src/array/insert.d.ts /** * Insert items into an array at a specified index * * _(Uses chunking to avoid call stack size being exceeded)_ * * @param array Original array * @param index Index to insert at * @param items Inserted items * @returns Updated array * * @example * ```typescript * insert([1, 2, 3], 1, [4, 5]); // => [1, 4, 5, 2, 3] * ``` */ declare function insert(array: Item[], index: number, items: Item[]): Item[]; /** * Insert items into an array _(at the end)_ * * _(Uses chunking to avoid call stack size being exceeded)_ * * @param array Original array * @param items Inserted items * @returns Updated array * * @example * ```typescript * insert([1, 2, 3], [4, 5]); // => [1, 2, 3, 4, 5] * ``` */ declare function insert(array: Item[], items: Item[]): Item[]; //#endregion export { insert };