5/29/2023 0 Comments Indexof javascriptVar str = "We got a poop cleanup on isle 4." indexOf getting index of sub string, returns -1 if not found Example 1: using index of on array of objects arr = Īrr.findIndex(obj => obj.x = "a" & obj.y = 1) Example 2: javascript indexof //indexOf getting index of array element, returns -1 if not found
0 Comments
Leave a Reply. |