結果 : filter undefined values from array javascript