get a range of index array javascript code example
Example: js array get range
const array = ['a','b','c','d']
const sliced = array.slice(0, 3)
// ["a", "b", "c"]
const array = ['a','b','c','d']
const sliced = array.slice(0, 3)
// ["a", "b", "c"]