結果 : create array of ids from array of objects javascript