DEV Community

loading...

Discussion on: Challenge: Get Closest Number in an Array

bugb profile image
bugb

yes, by including compareFunction callback, we can solve this problem.