const arr = [10, 20, 30, 40, 50]; const part = arr.slice(1, 4); console.log(part); // [20, 30, 40] console.log(arr); // [10, 20, 30, 40, 50] (unchanged) To create a ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results