Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14.0
-
a8bc011d459a4d080815a2675f2a0413c8bf09d2 (qt/qtdeclarative/5.15)
Description
It seems that Array.includes doesn't check equality like Array.indexOf.
Array.indexOf behaves as expected but includes doesn't:
[(Qt.point(0, 0)].includes(Qt.point(0, 0)) returns false
Note the second attachment and the differences when using object properties or local javascript variables as array elements.
Everyline line should return true.