lastIndexOf() method returns the last index at which a given element can be found in the typed array, or -1 if it is not present. The typed array is searched backwards, starting at
fromIndex. This method has the same algorithm as
Array.prototype.lastIndexOf(). TypedArray is one of the typed array types here.