結果 : javascript check if item is last in array