docs/polyethylene.polysynciterable.toarray.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [polyethylene](./polyethylene.md) > [PolySyncIterable](./polyethylene.polysynciterable.md) > [toArray](./polyethylene.polysynciterable.toarray.md)
## PolySyncIterable.toArray() method
Return an array of all elements of this iteration in the same order that were yielded.
<b>Signature:</b>
```typescript
toArray(): Array<T>;
```
<b>Returns:</b>
Array<T>
An array that contains the same elements as this iteration, in the same order