UNPKG

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) 970 B
<!-- 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; [indexOf](./rc-js-util.atypedarraytuple.indexof.md) ## ATypedArrayTuple.indexOf() method Returns the index of the first occurrence of a value in an array. **Signature:** ```typescript indexOf(_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