new PxLoaderTags('tag').contains(new PxLoaderTags('tag2')) ==> false
new PxLoaderTags(['tag1']).contains(new PxLoaderTags(['tag2'])) ==> true
This happens because contains checks if the length of both arrays is one and
if this is the case it tries to compare the supposed singular value from both.
This then results in comparing null against null and then returning true, incorrectly.
The problem is:
This happens because
contains
checks if the length of both arrays is one and if this is the case it tries to compare the supposed singular value from both. This then results in comparing null against null and then returning true, incorrectly.