Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

indexOF

public int indexOf(int value)
    {
        int index = -1;
        for (int i = 0; i < size; i++)
        {
            if (elementData[i] == value)
            {
                index = i;
            }
        }
        return index;
    }
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #indexOF
ADD COMMENT
Topic
Name
1+3 =