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.