How can I use findIndex when I have a array of strings or objects. Both of the above code returns -1 How can I use findIndex when I have a array of
How can I use findIndex when I have a array of strings or objects. Both of the above code returns -1 How can I use findIndex when I have a array of