結果 : js get array of ids from array of objects