title: Does array.filter() create a new array?
body: <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter</a>
  <br>
  <strong>as per document says</strong> The filter() method creates a new array with all elements that pass the test implemented by the provided function.</p>
  <p>According to document below script should console <code>Learning</code><br> <strong>console.log(Arr[0].name) // Learning</strong></p>
  <pre><code>var Arr = [{name:'Learning'},{name:'Questing'}]
  var Arr2 = Arr.filter(it=&gt; true);
  Arr2[0].name = 'Stack-Over-Flow';
  console.log(Arr[0].name) // Stack-Over-Flow
  </code></pre>