JScript ランゲージ リファレンス、slice メソッド(Array オブジェクト)
a = [1, 2, 3] WScript.Echo(a.slice(0)); WScript.Echo(a.slice(1)); WScript.Echo(a.slice(3)); WScript.Echo(a.slice(0,1)); WScript.Echo(a.slice(1,0)); WScript.Echo(a.slice(-1)); WScript.Echo(a.slice(-2,-1)); WScript.Echo(a.slice(-2)); WScript.Echo(a.slice(-10));