The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > / > Bytes > toUint8Array

Bytes.toUint8Array() method

Returns the underlying bytes in a new Uint8Array.

Signature:

toUint8Array(): Uint8Array;

Returns:

Uint8Array

The Uint8Array created from the Bytes object.