Hi all,

In the docs, it says that Array.indexOf uses equivalence (==), not
strict equality (===).
But the code uses strict equality.  From

if (!Array.prototype.indexOf) Array.prototype.indexOf = function(item,
i) {
  i || (i = 0);
  var length = this.length;
  if (i < 0) i = length + i;
  for (; i < length; i++)
    if (this[i] === item) return i;
  return -1;

So I'll file a ticket, my only question is whether I should file it
against the code or the docs. ;-)
T.J. Crowder
tj / crowder software / com
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to