Does JavaScript have a method like “range()” to generate a range within the supplied bounds?
It works for characters and numbers, going forwards or backwards with an optional step. jsFiddle. If augmenting native types is your thing, then assign it to Array.range. Show code snippet