結果 : get max and min from array javascript