title: Searching and filtering array
body: <p>Lets say I have an array like this:</p>
  
  <pre><code>var arr = ['hello, my', 'hello, my name is', 'hello, my name is newton', 'hello, his', 'hello, his name is', 'hello, his name is pluto', 'hello, she is britney'];
  </code></pre>
  
  <p>I want to filter it into:</p>
  
  <pre><code>var arr = ['hello, my name is newton', 'hello, his name is pluto', 'hello, she is britney'];
  </code></pre>
  
  <p>I don't know how to put this but the condition is like if an array element's string can be found on other element then it should be removed. Like 'hello, my' can be found exactly in the next following element 'hello, my name is' so 'hello, my' should be removed.</p>
  
  <p>The actual array I'm trying to filter is:</p>
  
  <pre><code>var arr = ['11 22 13', '11 22 13 34', '11 22 13 34 15', '11 22 13 34 35', '11 22 23', '11 22 23 34', '11 22 23 34 15', '11 22 23 34 35', '31 22 13', '31 22 13 34', '31 22 13 34 15', '31 22 13 34 35', '31 22 23', '31 22 23 34', '31 22 23 34 15', '31 22 23 34 35'];
  </code></pre>
  
  <p>I've tried to break it into different groups but I still do not know what to do with it. I'll show it anyway:</p>
  
  <pre><code>var threelink = [];
  var fourlink = [];
  var fivelink = [];
  
      for(var i=0; i &lt; arr.length; i++){
          if(arr[i].length&gt;8&amp;&amp;arr[i].length&lt;12){
              fourlink.push(arr[i]);
          }
          else if(arr[i].length&gt;11){
              fivelink.push(arr[i]);
          }
          else { 
              threelink.push(arr[i]);
          }
      }
  </code></pre>