結果 : check if an array has duplicate values javascript