2020-03-29 13:43:52 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2021-07-10 21:54:41 +00:00
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [mergeArrays](./js-utils.mergearrays.md)
|
2020-03-29 13:43:52 +00:00
|
|
|
|
2021-07-10 21:54:41 +00:00
|
|
|
## mergeArrays() function
|
2020-03-29 13:43:52 +00:00
|
|
|
|
|
|
|
Merge arguments, which may or may not be arrays, into one return that is definitely an array.
|
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2021-07-10 21:54:41 +00:00
|
|
|
export declare function mergeArrays<TItem>(...parts: Array<TItem | Array<TItem>>): Array<TItem>;
|
2020-03-29 13:43:52 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-06-29 23:23:16 +00:00
|
|
|
| parts | Array<TItem \| Array<TItem>> | |
|
2020-03-29 13:43:52 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-06-29 23:23:16 +00:00
|
|
|
Array<TItem>
|
2020-03-29 13:43:52 +00:00
|
|
|
|