Median doesn't ever return in some cases containing NaN values, handing the process indefinitely
Hangs:
mathjs.median(NaN, NaN, NaN)
mathjs.median(2, NaN, NaN)
Returns NaN
mathjs.median(2, NaN)
mathjs.median(NaN)
I would expect all these cases to return NaN, or even something else but not to hang the javascript process.
Median doesn't ever return in some cases containing NaN values, handing the process indefinitely
Hangs:
mathjs.median(NaN, NaN, NaN)mathjs.median(2, NaN, NaN)Returns
NaNmathjs.median(2, NaN)mathjs.median(NaN)I would expect all these cases to return
NaN, or even something else but not to hang the javascript process.