---
title: "arraySize"
canonical: "https://support.appfire.com/space/PSJ/15489630/arraySize"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | arraySize(array) | **Package** | array |
| **Alias** | size(array) | **Pkg Usage** | size(array) |

## Description

> Macro (excerpt)
> 
> Returns the size of the given array.

Returns the size of the given array.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| array | Array | Yes | Array size will be returned. |

## Return Type

**Number**

## Example

```
size(watchers); // returns the number of watchers
```

## See also

> Macro (contentbylabel)