Add lastIndexOf() method to API index
Add example code