---
title: "lerpArrayValues | 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 lerpArrayValues

-   lerpArrayValues(numericArray: [NumericArrayWithNull](https://docs.maptiler.com/sdk-js/api-reference/types/NumericArrayWithNull/)): number\[\][](#lerparrayvalues)
    
    Interpolates an array of numbers, replacing null values with interpolated values.
    
    `null` is treated as an empty value where an interpolation is needed.
    
    #### Parameters
    
    -   numericArray: [NumericArrayWithNull](https://docs.maptiler.com/sdk-js/api-reference/types/NumericArrayWithNull/)
        
        The array of numbers to interpolate, which may contain null values
        
    
    #### Returns number\[\]
    
    A new array with null values replaced by interpolated values
