結果 : loop through all objects in array javascript