# utils/array

## Index

### Functions

* [zeroRange](#zerorange)

## Functions

### zeroRange

▸ **zeroRange**(`to`: number): *number\[]*

*Defined in* [*packages/contractkit/src/utils/array.ts:7*](https://github.com/celo-org/celo-monorepo/blob/master/packages/contractkit/src/utils/array.ts#L7)

Returns an array \[0, 1, ..., to - 1]

**Parameters:**

| Name | Type   | Description                       |
| ---- | ------ | --------------------------------- |
| `to` | number | the exclusive limit of the array. |

**Returns:** *number\[]*
