VectorValue class

Represents a vector type in Firestore documents. Create an instance with .

VectorValue

Signature:

export declare class VectorValue 

Methods

Method Modifiers Description
isEqual(other) Returns true if the two VectorValue has the same raw number arrays, returns false otherwise.
toArray() Returns a copy of the raw number array form of the vector.

VectorValue.isEqual()

Returns true if the two VectorValue has the same raw number arrays, returns false otherwise.

Signature:

isEqual(other: VectorValue): boolean;

Parameters

Parameter Type Description
other VectorValue

Returns:

boolean

VectorValue.toArray()

Returns a copy of the raw number array form of the vector.

Signature:

toArray(): number[];

Returns:

number[]