結果 : best way to loop through array of objects javascript