<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [lite](./firestore_lite.md) &gt; [Bytes](./firestore_lite.bytes.md) &gt; [toUint8Array](./firestore_lite.bytes.touint8array.md)

## Bytes.toUint8Array() method

Returns the underlying bytes in a new `Uint8Array`<!-- -->.

<b>Signature:</b>

```typescript
toUint8Array(): Uint8Array;
```
<b>Returns:</b>

Uint8Array

The Uint8Array created from the `Bytes` object.

