#793 enhancement

Change == comparison to ===

Reported by blatyo | September 10th, 2009 @ 07:43 PM | in 1.7

There is an inconsistency between some of the methods in prototype when doing comparison. Array#intersect and Array#indexOf use ===, while Array#uniq and Enumerable#include use ==.

I have created a fork of prototype changing Array#uniq and Enumberable#include to use === comparison. [1] I have also updated the docs for the functions mentioned to specify that they use === comparison. Lastly, I have updated the tests for those methods to ensure they still work and appropriately test the new constraint.

[1] Fork

Relevant Commits:
Commit 1 Commit 1 Commit 1 Commit 1

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins