remove duplicated arrayLastIndexOf