Returns [min, max] in a single pass, or [undefined, undefined] for an empty array.
[min, max]
[undefined, undefined]
Optional
Returns
[min, max]in a single pass, or[undefined, undefined]for an empty array.