title: JavaScript: filter() Method Returning Back Original Array and Not Filtering
body: <p>I have the following code below using the filter() array function. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>arr = [12, 5, 8, 130, 44]
  
  function test(arr) {
    return arr.filter((element) =&gt; {
      return element &gt;= 10
    });
  }
  
  console.log(test(arr))</code></pre>
  </div>
  </div>
  </p>
  
  <p>My code is returning the original array ([ 12, 5, 8, 130, 44 ]) and not filtering at all.  What am I doing wrong?  </p>
  
  <p>Note: I want to use the filter() method for this.  </p>