Top "Indexof" questions

indexof is a method in programming languages like Java, C#, JavaScript, etc.

How do I get the index of object in array using angular?

I need to have the index of an object in array so I can delete this part of the array. …

javascript arrays angular typescript indexof
Javascript array contains/includes sub array

I need to check if an array contains another array. The order of the subarray is important but the actual …

javascript arrays include contains indexof
strstr() for a string that is NOT null-terminated

How do I do the in-place equivalent of strstr() for a counted string (i.e. not null-terminated) in C?

c string indexof null-terminated
Javascript find index of word in string (not part of word)

I am currently using str.indexOf("word") to find a word in a string. But the problem is that it …

javascript regex search indexof text-search
Need to reset just the indexes of a Javascript array

I have a for loop which returns an array. Return: 1st loop: arr[0] arr[1] arr[2] arr[3] Here the length I …

javascript arrays indexing indexof
Why is indexOf failing to find the object?

I created an integer list and am trying to return the index of a specific value. The array is 3,8,2,5,1,4,7,6 and …

java indexof
IndexOf too slow on list. Faster solution?

I have generic list which must be a preserved order so I can retrieve the index of an object in …

c# list performance indexof
string.LastIndexOf() Bug?

does anyone know why: " <exception>".LastIndexOf("<",0) returns -1 (wrong) while " <exception>".LastIndexOf("<") returns 2 (right) …

c# string indexof
indexOf() will not find a custom object type

The following code does not give me right answer. class Point { int x; int y; public Point(int a,int …

java arraylist indexof
Issues with indexOf and lastIndexOf on substring - Get Part of URL from string

I'm having a few issues breaking apart a string in the way I want. I have a url like this: …

javascript jquery regex substring indexof