<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [ATypedArrayTuple](./rc-js-util.atypedarraytuple.md) &gt; [lastIndexOf](./rc-js-util.atypedarraytuple.lastindexof.md)

## ATypedArrayTuple.lastIndexOf() method

Returns the index of the last occurrence of a value in an array.

**Signature:**

```typescript
lastIndexOf(_searchElement: number, _fromIndex?: number): number;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

\_searchElement


</td><td>

number


</td><td>

The value to locate in the array.


</td></tr>
<tr><td>

\_fromIndex


</td><td>

number


</td><td>

_(Optional)_ The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.


</td></tr>
</tbody></table>
**Returns:**

number

