The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend theVectorValueclass.
Methods
isEqual(other)
isEqual(other:VectorValue):boolean;
Returnstrueif the two VectorValue has the same raw number arrays, returnsfalseotherwise.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class VectorValue (7.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [7.11.0 (latest)](/nodejs/docs/reference/firestore/latest/firestore/vectorvalue)\n- [7.9.0](/nodejs/docs/reference/firestore/7.9.0/firestore/vectorvalue)\n- [7.7.0](/nodejs/docs/reference/firestore/7.7.0/firestore/vectorvalue)\n- [7.6.0](/nodejs/docs/reference/firestore/7.6.0/firestore/vectorvalue)\n- [7.5.0](/nodejs/docs/reference/firestore/7.5.0/firestore/vectorvalue)\n- [7.4.0](/nodejs/docs/reference/firestore/7.4.0/firestore/vectorvalue)\n- [7.3.1](/nodejs/docs/reference/firestore/7.3.1/firestore/vectorvalue)\n- [7.2.0](/nodejs/docs/reference/firestore/7.2.0/firestore/vectorvalue)\n- [7.1.0](/nodejs/docs/reference/firestore/7.1.0/firestore/vectorvalue)\n- [6.4.1](/nodejs/docs/reference/firestore/6.4.1/firestore/vectorvalue)\n- [6.3.0](/nodejs/docs/reference/firestore/6.3.0/firestore/vectorvalue)\n- [6.0.0](/nodejs/docs/reference/firestore/6.0.0/firestore/vectorvalue)\n- [5.0.2](/nodejs/docs/reference/firestore/5.0.2/firestore/vectorvalue)\n- [4.15.1](/nodejs/docs/reference/firestore/4.15.1/firestore/vectorvalue)\n- [4.14.2](/nodejs/docs/reference/firestore/4.14.2/firestore/vectorvalue)\n- [4.9.8](/nodejs/docs/reference/firestore/4.9.8/firestore/vectorvalue) \nRepresent a vector type in Firestore documents. Create an instance with [FieldValue.vector()](/nodejs/docs/reference/firestore/latest/firestore/fieldvalue).\n\nVectorValue\n\nPackage\n-------\n\n[@google-cloud/firestore](../overview.html)\n\nRemarks\n-------\n\nThe constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `VectorValue` class.\n\nMethods\n-------\n\n### isEqual(other)\n\n isEqual(other: VectorValue): boolean;\n\nReturns `true` if the two VectorValue has the same raw number arrays, returns `false` otherwise.\n\n### toArray()\n\n toArray(): number[];\n\nReturns a copy of the raw number array form of the vector."]]