Imagine a custom user object with a constructor that is not named `Array’, but contains the word “Array” in the code (in a string, or when using the Array constructor itself). In that case, your code would return inaccurate results for instances of that object.

i am adding some values to javascript array.
i want to compare each value with string constant(lets say “false”),
if any one item of array match with the string constant i have return true,
else false.Using java script.

Well, we can check a bigger expression for a better precision.
Like:
obj.constructor.toString().indexOf(“function Array()”) != -1
with this, we have a better acurancy of what we want.
I will wait for observations.
🙂
[]’s, Basalt

The problem is: in day 5/8/2011, for exemple, it flag how a event day, but it isn’t a event day, it’s because 15/8/2011 have events. And I can’t change my way to make the array, else some other things will not work as well.

How can i change the way to look into the array in the Javascript for it don’t happen?