The length of the median to the hypotenuse of an isosceles, right triangle is $10$ units. What is the length of a leg of the triangle, in units?