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 > lite > Bytes > fromUint8Array

Bytes.fromUint8Array() method

Creates a new Bytes object from the given Uint8Array.

Signature:

static fromUint8Array(array: Uint8Array): Bytes;

Parameters

Parameter Type Description
array Uint8Array The Uint8Array used to create the Bytes object.

Returns:

Bytes