結果 : check if array has consecutive numbers javascript