<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: jQuery.inArray()</title>
	<atom:link href="http://api.jquery.com/jQuery.inArray/feed/" rel="self" type="application/rss+xml" />
	<link>http://api.jquery.com/jQuery.inArray/</link>
	<description>jQuery API Reference</description>
	<lastBuildDate>Fri, 19 Aug 2011 09:06:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Amjad Masad</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-8363</link>
		<dc:creator>Amjad Masad</dc:creator>
		<pubDate>Sat, 15 Jan 2011 19:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-8363</guid>
		<description>You could easily convert the returned value from inArray to boolean, !!~jQuery.inArray(elm, arr)</description>
		<content:encoded><![CDATA[<p>You could easily convert the returned value from inArray to boolean, !!~jQuery.inArray(elm, arr)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-7887</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Sat, 27 Nov 2010 08:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-7887</guid>
		<description>Already answered the question above ( &lt;a href=&quot;http://api.jquery.com/jQuery.inArray/#comment-31436032&quot; rel=&quot;nofollow&quot;&gt;http://api.jquery.com/jQuery.i...&lt;/a&gt; ) as did John Resig in reply to Znarkus on the forum.</description>
		<content:encoded><![CDATA[<p>Already answered the question above ( <a href="http://api.jquery.com/jQuery.inArray/#comment-31436032" rel="nofollow">http://api.jquery.com/jQuery.i&#8230;</a> ) as did John Resig in reply to Znarkus on the forum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-7243</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Sat, 27 Nov 2010 00:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-7243</guid>
		<description>Already answered the question above ( &lt;a href=&quot;http://api.jquery.com/jQuery.inArray/#comment-31436032&quot; rel=&quot;nofollow&quot;&gt;http://api.jquery.com/jQuery.inArray/#comment-31436032&lt;/a&gt; ) as did John Resig in reply to Znarkus on the forum.</description>
		<content:encoded><![CDATA[<p>Already answered the question above ( <a href="http://api.jquery.com/jQuery.inArray/#comment-31436032" rel="nofollow">http://api.jquery.com/jQuery.inArray/#comment-31436032</a> ) as did John Resig in reply to Znarkus on the forum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio Parrella</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-12636</link>
		<dc:creator>Fabrizio Parrella</dc:creator>
		<pubDate>Thu, 25 Nov 2010 17:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-12636</guid>
		<description>I meant to post this under 	Karl Swedberg message</description>
		<content:encoded><![CDATA[<p>I meant to post this under 	Karl Swedberg message</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-7223</link>
		<dc:creator>Fabrizio</dc:creator>
		<pubDate>Thu, 25 Nov 2010 14:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-7223</guid>
		<description>shouldn&#039;t:&lt;br&gt; - return array.indexOf( elem );&lt;br&gt;be changed with something similar to&lt;br&gt;   var ret = array.indexOf( elem );&lt;br&gt;   return (ret==undefined)?-1:ret;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>shouldn&#39;t:<br /> &#8211; return array.indexOf( elem );<br />be changed with something similar to<br />   var ret = array.indexOf( elem );<br />   return (ret==undefined)?-1:ret;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Znarkus</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-7016</link>
		<dc:creator>Znarkus</dc:creator>
		<pubDate>Tue, 16 Nov 2010 04:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-7016</guid>
		<description>I asked the same thing a while back in the jQuery forum &lt;a href=&quot;http://forum.jquery.com/topic/inarray&quot; rel=&quot;nofollow&quot;&gt;http://forum.jquery.com/topic/inarray&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I asked the same thing a while back in the jQuery forum <a href="http://forum.jquery.com/topic/inarray" rel="nofollow">http://forum.jquery.com/topic/inarray</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Billy Wenge-Murphy</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-7014</link>
		<dc:creator>Billy Wenge-Murphy</dc:creator>
		<pubDate>Tue, 16 Nov 2010 00:19:31 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-7014</guid>
		<description>&gt;Array.indexOf() is not supported in every browser&lt;br&gt;Then why not call it indexOf and make it available when the native alternative isn&#039;t?&lt;br&gt;&lt;br&gt;I expect an &quot;inArray&quot; function to act like PHP in_array</description>
		<content:encoded><![CDATA[<p>&gt;Array.indexOf() is not supported in every browser<br />Then why not call it indexOf and make it available when the native alternative isn&#39;t?</p>
<p>I expect an &#8220;inArray&#8221; function to act like PHP in_array</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Znarkus</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-6890</link>
		<dc:creator>Znarkus</dc:creator>
		<pubDate>Tue, 09 Nov 2010 17:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-6890</guid>
		<description>Should the docs say that it checks type?</description>
		<content:encoded><![CDATA[<p>Should the docs say that it checks type?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BertrandChorizo</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-6083</link>
		<dc:creator>BertrandChorizo</dc:creator>
		<pubDate>Sat, 02 Oct 2010 07:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-6083</guid>
		<description>it does</description>
		<content:encoded><![CDATA[<p>it does</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jesso</title>
		<link>http://api.jquery.com/jQuery.inArray/comment-page-1/#comment-12350</link>
		<dc:creator>jesso</dc:creator>
		<pubDate>Fri, 17 Sep 2010 20:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=212#comment-12350</guid>
		<description>It may be obvious to some, but there is a difference between numbers and strings! parseInt() can solve the problem.
Ex:
var number = 32;
var arr = [14, 28, 44, &quot;32&quot;];
if(jQuery.inArray(number,arr) &gt; -1) {
	alert(&#039;found&#039;);
}
// false because &quot;32&quot; is a string in the array
</description>
		<content:encoded><![CDATA[<p>It may be obvious to some, but there is a difference between numbers and strings! parseInt() can solve the problem.<br />
Ex:<br />
var number = 32;<br />
var arr = [14, 28, 44, "32"];<br />
if(jQuery.inArray(number,arr) &gt; -1) {<br />
	alert(&#8216;found&#8217;);<br />
}<br />
// false because &#8220;32&#8243; is a string in the array</p>
]]></content:encoded>
	</item>
</channel>
</rss>

