mozilla

Compare Revisions

Array.prototype.splice()

Change Revisions

Revision 502551:

Revision 502551 by fscholz on

Revision 502553:

Revision 502553 by fscholz on

Title:
Array.prototype.splice()
Array.prototype.splice()
Slug:
Web/JavaScript/Reference/Global_Objects/Array/splice
Web/JavaScript/Reference/Global_Objects/Array/splice
Tags:
"Array", "Method", "JavaScript", "Prototype"
"Array", "prototype", "Method", "JavaScript"
Content:

Revision 502551
Revision 502553
n96removed = myFish.splice(3, <code class="language-js">Number<span n96removed = myFish.splice(3, Number.MAX_VALUE);
>class="token punctuation">.</span>MAX_VALUE</code>); 
n256    <h3 id="Backward_Compatibility">n256    <h3 id="Backward_compatibility">
n266      <li>{{jsxref("Array.push")}} / {{jsxref("Array.pop")}} - adn266      <li>{{jsxref("Array.push", "push")}} / {{jsxref("Array.pop"
>d/remove elements from the end of the array;>, "pop")}} - add/remove elements from the end of the array;
n268      <li>{{jsxref("Array.unshift")}} / {{jsxref("Array.shift")}}n268      <li>{{jsxref("Array.unshift", "unshift")}} / {{jsxref("Arra
> - add/remove elements from the beginning of the array;>y.shift", "shift")}} - add/remove elements from the beginning of 
 >the array;
t270      <li>{{jsxref("Array.concat")}} - returns a new array comprit270      <li>{{jsxref("Array.concat", "concat")}} - returns a new ar
>sed of this array joined with other array(s) and/or value(s).>ray comprised of this array joined with other array(s) and/or val
 >ue(s).

Back to History