You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indead, I suppose that when mean is used with an empty array, it divides by 0 and so it returns NaN. I think it would be more appropriate to return undefined when we cannot execute the calculation.
The text was updated successfully, but these errors were encountered:
Indead, I suppose that when
mean
is used with an empty array, it divides by 0 and so it returns NaN. I think it would be more appropriate to returnundefined
when we cannot execute the calculation.The text was updated successfully, but these errors were encountered: