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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **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

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | array | Array | Yes | Array size will be returned. |

## Return Type

**Number**

## Example

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

## See also

> Macro (contentbylabel)