> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/array/avg.md).

# avg

## Description

Get the average value of all the elemnents in an array. An array can be created using the toArray function.

## Input / Parameter

| Name   | Description         | Input Type | Default | Options | Required |
| ------ | ------------------- | ---------- | ------- | ------- | -------- |
| values | An array of values. | Array/List | -       | -       | Yes      |

## Output

| Description                                             | Output Type |
| ------------------------------------------------------- | ----------- |
| Returns the average value of the elements in the array. | Number      |

## Callback

N/A

## Video

Coming Soon.

## Example

Coming Soon.

### Steps

Coming Soon.

### Result

Coming Soon.

## Links
