js get elements in array from x to y

JavaScript
arr.slice([início[,fim]])
Source

Also in JavaScript: