tworzą tablicę od I do J JavaScript
Array.from({ length: to-from+1 }, (_, i) => from + i)
Elegant Elk
Array.from({ length: to-from+1 }, (_, i) => from + i)