結果 : javascript get out of foreach loop