Is there a clever way to check which range my number is within? I am using React with ES6. I have a list of different ranges and each range defines which value it can have.