title: RxJS - partition array of objects
body: <p>How do I partition the following array so it's partition between those under 30, and those 30 and above.</p>
  
  <p>I thought the following code would do it, but it appears to just return the array, not each element:</p>
  
  <pre><code>let ageArr = [
      { name: 'Ken', age: 28 },
      { name: 'Mary', age: 70 },
      { name: 'Kate', age: 12 },
      { name: 'David', age: 37 },
      { name: 'Laura', age: 42 },
      { name: 'Ian', age: 19 },
      { name: 'Peter', age: 21 },
      { name: 'Isobel', age: 55 },
      { name: 'Rebecca', age: 15 }
  ];
  
  let [under, over] = Oversable.of(ageArr).partition(person =&gt; person.age &lt; 30);
  
  under.subscribe(a =&gt; console.log(a)); // [ { name: 'Ken', age: 28 }, { name: 'Kate', age: 12 }, { name: 'Ian', age: 19 }, { name: 'Peter', age: 21 }, { name: 'Rebecca', age: 15 } ]
  over.subscribe(a =&gt; console.log(a)); // [ { name: 'Mary', age: 70 }, { name: 'David', age: 37 }, { name: 'Laura', age: 42 }, { name: 'Isobel', age: 55 } ]
  </code></pre>
  
  <p>But as stated above, this seems not to work. Any idea how to achieve what I'd like to?</p>