jeffchannell.com

JavaScript Array Functions

Posted in JavaScript
2009-03-29 16:38:56 +0000 UTC

I've been going through my $HOME looking for things to post, and came across this little snippet:

function inArray( needle, haystack )
{
	var i=0;
	var n=haystack.length
	for( i; i

Notice that "inArray" calls "isArray", so they are both required if using "inArray".