October 18, 201114 yr I'm having trouble with a function to do the following: Given an array of values, for example: 2 3 4 7 8 11 13 14 15 How can I group them in an array like so: 2-4 7-8 11 13-15
Create an account or sign in to comment