結果 : return an object from an array javascript