Comparing Ranges
Problem
You want to know if a variable is inside a given range.
Solution
Use CoffeeScript’s chained comparison syntax.
Discussion
This is a nice feature lifted from Python. Instead of writing out the full comparison like
CoffeeScript allows us to chain the two comparisons together in a form that more closely matches the way a mathematician would write it.