News for hackers. Stuff that matters.
Re:Why I still prefer Prototype to jQuery by tlrobinson on Monday January 12, 2009 @07:12PM (#431380)

    Determine the index of the first parameter in the Array …
    Ah, it returns the index. But that’s OK … JavaScript supports the notion of “truthiness”,
Except if it returns "0", of course.

It's a very C-like way of doing things:

   if ($.inArray(blah blah) < 0)
        // not found!

There are no comments on this comment yet.