Parameters: It accept two parameters which are specified below:
- search_Element: It is the element whose last index is to be searched.
- from_Index: It is optional. It is the index upto which an element is to be searched and its default value is the length of the typedArray.
Return value: It returns the last index of the typedArray at which a given element is present otherwise it returns -1 if the element is not present.
6 4 3 -1 5 -1
1 0 3 -1 -1 -1