How do you make indexOf case insensitive?

Yes, it is case-sensitive. You can do a case-insensitive indexOf by converting your String and the String parameter both to upper-case before searching . Note that toUpperCase may not work in some circumstances.

Sizin İçin Seçtik  Will a 5G phone work in a 4G area?

Leave a Reply

Your email address will not be published. Required fields are marked *