---
title: rangeIntersection
status: published
category: primitives
group: Function
author: api
date: 06/23/2023
order: 72
---<Small>Public Function</Small>

Finds the intersection of two ranges.


##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`a0`

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```

The start point in the A range




</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`a1`

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```

The end point in the A range




</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`b0`

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```

The start point in the B range




</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`b1`

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```

The end point in the B range




</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>

##### Returns


```ts
[number, number] | null
```

 The intersection of the ranges, or null if no intersection


