mozilla

Compare Revisions

Array.prototype.splice()

Change Revisions

Revision 313665:

Revision 313665 by ethertank on

Revision 321715:

Revision 321715 by Nickolay on

Title:
Array splice method
Array splice method
Slug:
JavaScript/Reference/Global_Objects/Array/splice
JavaScript/Reference/Global_Objects/Array/splice
Tags:
"Array", "Array Methods"
"Array", "Array methods"
Content:

Revision 313665
Revision 321715
n44<code><em>array</em>.splice(<em>index</em> ,<em> howMany</em>[<emn44<code><em>array</em>.splice(<em>index</em> ,<em> howMany</em>[<em
>>,</em><em> element1</em>[, ...[, <em>elementN</em>]]])</code><br>>,</em><em> element1</em>[, ...[, <em>elementN</em>]]])</code>
>>  <code><em>array</em>.splice(<em>index</em>[,<em> howMany</em>[ 
>,<em> element1</em>[, ...[, <em>elementN</em>]]]])</code> 
45 
46  <code><em>array</em>.splice(<em>index</em>[,<em> howMany</em>[,
 ><em> element1</em>[, ...[, <em>elementN</em>]]]])</code>
tt128    <h2 id="See_Also" name="See_Also">
129      See Also
130    </h2>
131    <ul>
132      <li>
133        <a href="https://developer.mozilla.org/en-US/docs/JavaScr
 >ipt/Reference/Global_Objects/Array/push" title="https://developer
 >.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array
 >/push">push</a> / <a href="https://developer.mozilla.org/en/JavaS
 >cript/Reference/Global_Objects/Array/pop" title="en/JavaScript/Re
 >ference/Global_Objects/Array/pop">pop</a> - add/remove elements f
 >rom the end of the array;
134      </li>
135      <li>
136        <a href="https://developer.mozilla.org/en/JavaScript/Refe
 >rence/Global_Objects/Array/shift" title="en/JavaScript/Reference/
 >Global_Objects/Array/shift">shift</a> / <a href="https://develope
 >r.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshif
 >t" title="en/JavaScript/Reference/Global_Objects/Array/unshift">u
 >nshift</a> - add/remove elements from the beginning of the array;
137      </li>
138      <li>
139        <a href="/en-US/docs/JavaScript/Reference/Global_Objects/
 >Array/concat" title="https://developer.mozilla.org/en-US/docs/Jav
 >aScript/Reference/Global_Objects/Array/splice">concat</a> - retur
 >ns a new array comprised of this array joined with other array(s)
 > and/or value(s).
140      </li>
141    </ul>

Back to History