title: What is the highest performance way to filter a list of JSON objects in JavaScript?
body: <p>Let's assume I have a huge (1000+) list of objects like this:</p>
  
  <pre><code>[{name: 'john dow', age: 38, gender:'m'}, {name: 'jane dow', age: 18, gender:'f'}, ..]
  </code></pre>
  
  <p>I want to filter this list by name (character wise). </p>
  
  <pre><code>filter('j') =&gt; [{name: 'john dow', age: 38, gender:'m'}, {name: 'jane dow', age: 18, gender:'f'}, ..]
  
  filter('jo') =&gt; [{name: 'john dow', age: 38, gender:'m'}, ..]
  
  filter('dow') =&gt; [{name: 'john dow', age: 38, gender:'m'}, {name: 'jane dow', age: 18, gender:'f'}, ..]
  </code></pre>
  
  <p>What is the highest performance way to do that? RegEx is obviously one of the keys, ordering the list beforehand if you assume that user usually tend to start names from the beginning may also a good idea, but it only helps in some cases.</p>
  
  <p>Are there any JavaScript built-in functions for mapping a filter? I'd expect those to be faster than JavaScript implementations.</p>
  
  <p>P.S.: Yes I want to filter on client side because of "offline capabilities" I want to offer.</p>