Index of an Array Element
Function for finding the index of an array element
| Author URL | no website | |||
| Listing URL | none | |||
| Downloads | 902 | Views | 10742 | |
| manikk | ||||
|
User ratings for Index of an Array Element. |
||||
More listings by manikk
rewind |
Comments
You need to LOGIN to post a comment.
squadjot:
3 years ago
Nice, heres s short version =)
function getIndexOf(d:Array, val:Number):Number{
for (i=0; i<=d.length-1; i++) if (d[i] == val) return i;
}




