voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
25 lines (14 loc) • 678 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [Bytes](./firestore_.bytes.md) > [fromUint8Array](./firestore_.bytes.fromuint8array.md)
## Bytes.fromUint8Array() method
Creates a new `Bytes` object from the given Uint8Array.
<b>Signature:</b>
```typescript
static fromUint8Array(array: Uint8Array): Bytes;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| array | Uint8Array | The Uint8Array used to create the <code>Bytes</code> object. |
<b>Returns:</b>
[Bytes](./firestore_.bytes.md)