how to array to array in javascript with all diferetne data code example Example: js get elements in array from x to y arr.slice([início[,fim]])