indexOf() != contains()

by Ricardo “Rudxain” Fernández Serrata

Version 1 (November 29, 2022)

Download (88 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.7 average rating from 3 reviews

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

Rate and review within the app in the Community section.