4 ms·
You could switch the order they're compared and due to short-circuiting the second eval would only ever take place once. Or initialize min to the zeroth item in
by zanderwohl 7y ago
You could switch the order they're compared and due to short-circuiting the second eval would only ever take place once. Or initialize min to the zeroth item in the array.