Find Duplicate Value In Array Javascript Length