A Javascript array must be defined as follows:
var a = [1,2,3,4,5,6,7];
And then you can use your own slice array to get elements from a specific position
a.slice(2, 6)
Edit:
I know very well that functionality is available in JScript. I asked if this is available in the spine or underlining. You ask why you need an ice cube instead of water, because ice will eventually turn into water.
Underscore js do not have a function like slice
, as it is already available in native js.
source share