結果 : get min and max from array javascript