sliceメソッド

構文
myArray = new Array("red", "green", "blue", "yellow", "purple");
  document.write("取り出し前の配列", myArray);
  myArray = myArray.slice(1,4);
   document.write("取り出し後の配列", myArray);

実行結果