indexOf() != contains()

by Ricardo Fernández Serrata

Version 1 (September 7, 2021)

Download (1 downloads)

I found a difference between these. indexOf seems to use the `=` operator internally, while contains can't compare containers at all.

indexOf() has no problem finding the container, while contains() can't find it

4.5 average rating from 2 reviews

5 stars
1
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.