---
title: "equals | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function equals

-   equals(a: [ReadonlyVec4](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyVec4/), b: [ReadonlyVec4](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyVec4/)): boolean[](#equals)
    
    Returns whether or not the vectors have approximately the same elements in the same position.
    
    #### Parameters
    
    -   a: [ReadonlyVec4](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyVec4/)
        
        The first vector.
        
    -   b: [ReadonlyVec4](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyVec4/)
        
        The second vector.
        
    
    #### Returns boolean
    
    True if the vectors are equal, false otherwise.
