[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [mergeArrays](./js-utils.mergearrays.md)
## mergeArrays() function
Merge arguments, which may or may not be arrays, into one return that is definitely an array.
Signature:
```typescript
export declare function mergeArrays(...parts: Array>): Array;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| parts | Array<TItem \| Array<TItem>> | |
Returns:
Array<TItem>