<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-drop-it?solution=function%20drop%28arr%2C%20func%29%20%7B%0A%20%20%2F%2F%20Drop%20them%20elements.%0A%20arr%20%3D%20arr.filter%28func%29%3B%0A%0A%20%20return%20arr%3B%7D%0A%0Adrop%28%5B1%2C%202%2C%203%5D%2C%20function%28n%29%20%7Breturn%20n%20%3C%203%3B%20%7D%29%3B%0A" rel="nofollow">Bonfire: Drop it</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function drop(arr, func) {
  // Drop them elements.
 arr = arr.filter(func);

  return arr;}

drop([1, 2, 3], function(n) {return n &lt; 3; });
"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">drop</span><span class="pl-kos">(</span><span class="pl-s1">arr</span><span class="pl-kos">,</span> <span class="pl-s1">func</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-c">// Drop them elements.</span>
 <span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">arr</span><span class="pl-kos">.</span><span class="pl-en">filter</span><span class="pl-kos">(</span><span class="pl-s1">func</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

  <span class="pl-k">return</span> <span class="pl-s1">arr</span><span class="pl-kos">;</span><span class="pl-kos">}</span>

<span class="pl-en">drop</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">n</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-k">return</span> <span class="pl-s1">n</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">3</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The last test case has a function showing n&gt;2, however, the result set has a 2 in it.</p>
<p dir="auto">Link: <a href="http://www.freecodecamp.com/challenges/bonfire-drop-it" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-drop-it</a></p>
<p dir="auto">Here is the 5th test case:<br>
drop([1, 2, 3, 9, 2], function(n) {return n &gt; 2}) should return [3, 9, 2].</p>
<p dir="auto">From the description alone you can see what is wrong. It should return [3, 9], it cannot include "2" in the result array if the function is n &gt; 2.</p>
<p dir="auto">If code you write is correct and actually returns [3, 9], you will still not pass the test.<br>
If code you write has hardcoded the wrong answer returned quoted in the test case, then the test will pass. So it is expecting the wrong answer.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9951362/11050934/6684f32c-86ff-11e5-9735-60e98da02f56.png"><img src="https://cloud.githubusercontent.com/assets/9951362/11050934/6684f32c-86ff-11e5-9735-60e98da02f56.png" alt="image" style="max-width: 100%;"></a></p>