re: Challenge: Get Closest Number in an Array VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

Be careful that ... can cause a range error:

RangeError: Maximum call stack size exceeded

when the nums array is very large.

code of conduct - report abuse