---
title: "arrayIntersect"
canonical: "https://support.appfire.com/space/PSJC/433654323/arrayIntersect"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Intersect between two arrays.

Intersect between two arrays.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | arrayIntersect(arrayName1, arrayName2) | **Package** | array |
| **Alias** |  | **Pkg Usage** | intersect(arrayName1, arrayName2) |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| arrayName1 | Array | Yes | First array. |
| arrayName2 | Array | Yes | Second array. |

## Return Type

**Array**

## Example

```javascript
string[] developers= usersInGroups({"jira-developers"});
string[] administrators = usersInGroups({"jira-administrators"});
return arrayIntersect(developers, administrators);
```

The result returned by the function is an array that contains the unique elements found in both developers and administrators groups.

## See also

> Macro (contentbylabel)