Create range higher to lower


I want to create range x..y where x > y. For eg 5..-10.

5..-10 produces empty range

I created this questions to share my solution and potentially someone will come with better idea.


We can create valid range y..x (since x > y) and then reverse it


this will produce desired range

Answered By – jkaczmarkiewicz

Answer Checked By – Clifford M. (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.