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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | excludeSubarray(arr, start, end) | **Package** | array |
| **Alias** |  | **Pkg Usage** | excludeSubarray(arr, start, end) |

## Description

> Macro (excerpt)
> 
> Returns an array excluding the array that starts at index 'start' and ends at index 'end'.

Returns an array excluding the array that starts at index 'start' and ends at index 'end'.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| arr | Array | Yes | Array. |
| start | Number | Yes | Start index. |
| end | Number | Yes | Stop index. |

## Return Type

**Array**

## See also

> Macro (contentbylabel)