get repeat in a array