rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
70 lines (33 loc) • 985 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [ATypedArrayTuple](./rc-js-util.atypedarraytuple.md) > [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