makes sense if you're aware of the defined behaviour for these functions:
Math.min()...If no arguments are given, the result is Infinity.
Math.max()...If no arguments are given, the result is - Infinity.
Now, as to why those were the decisions they made, your guess is as good as mine - but I guess they're just as reasonable as any other decision for when you ask for the max or min of an undefined value.
makes sense if you're aware of the defined behaviour for these functions:
Now, as to why those were the decisions they made, your guess is as good as mine - but I guess they're just as reasonable as any other decision for when you ask for the max or min of an undefined value.