Apply your JS skills to key Mozilla projects as an MDN Fellow! http://mzl.la/MDNFellowship

mozilla

Compare Revisions

Array.prototype.lastIndexOf()

Change Revisions

Revision 29156:

Revision 29156 by Mgjbot on

Revision 29157:

Revision 29157 by Waldo on

Title:
Array lastIndexOf method
Array lastIndexOf method
Slug:
JavaScript/Reference/Global_Objects/Array/lastIndexOf
JavaScript/Reference/Global_Objects/Array/lastIndexOf
Content:

Revision 29156
Revision 29157
n106      Note that we have to handle the case <code>idx == 0</code> n106      Note that we have to handle the case <code>idx == 0</code> 
>separately here because the element will always be found regardsl>separately here because the element will always be found regardle
>ess the <code>fromIndex</code> parameter if it is the first eleme>ss of the <code>fromIndex</code> parameter if it is the first ele
>nt of the array. This is different from the <a href="en/Core_Java>ment of the array. This is different from the <a href="en/Core_Ja
>Script_1.5_Reference/Objects/Array/indexOf">indexOf</a> method.>vaScript_1.5_Reference/Objects/Array/indexOf">indexOf</a> method.
t112      <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Art112      <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Ar
>ray/indexOf">Core JavaScript 1.5 Reference:Global Objects:Array:i>ray/indexOf">indexOf</a>
>ndexOf</a> 

Back to History