title: Split an array in two differents objects
body: <p>I have a const <code>teams</code>. I want to split this <code>array </code> into two <code>array </code>. The first team should be the team without a number in the first character of the name, and the second team should be with numbers in the first character of the team.</p>
  <pre><code>const [teams, setTeam] = useState([]);
  const teams = [{id: 1, name: &quot;1-First&quot;},
                 {id: 2, name: &quot;Winner&quot;},
                 {id: 3, name: &quot;2-Second&quot;}]
  
  // teamsWithNumber 
  var myArray = teams.filter(function (obj) {
          return obj.name.match('/^[A-Z0-9]/i')
  });
  const teamsWithNumber = myArray;
  // teamsWithOUTNumber 
  var myArray = teams.filter(function (obj) {
          return obj.name!== obj.name.match('/^[A-Z0-9]/i')
  });
  const teamsWithOUTNumber = myArray;
  </code></pre>
  <p>My output is</p>
  <pre><code>// console.log(teamsWithOUTNumber)
  [OUT] []
  </code></pre>
  <p>My desired output</p>
  <pre><code>teamsWithOUTNumber = [id: 2, name: &quot;Winner&quot;}]
  teamsWithNumber = [{id: 1, name: &quot;1-First&quot;},
                     {id: 3, &quot;2-Second&quot;}]
  </code></pre>