title: Get the object with the biggest number of elements
body: <p>I'm trying to get the object with the greatest number of elements and get the number of elements.</p>
  
  <p>I currently have the following:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var array = [
    [{
      'id': 1,
      'value': 100
    }, {
      'id': 1,
      'value': 100
    }],
    [{
      'id': 1,
      'value': 100
    }, {
      'id': 1,
      'value': 100
    }, {
      'id': 1,
      'value': 100
    }],
    [{
      'id': 1,
      'value': 100
    }, {
      'id': 1,
      'value': 100
    }]
  ];
  
  for (var i = 0; i &lt; array.length; i++) {
    console.log(array[i].length);
  
    //Here I need to get the bigger number in this case is 3, because I need it to another validations inside this for loop
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>In this case I know what is the bigger object, but I need to get the number and save it in a variable because I need to do some validations after.</p>
  
  <p>I hope that you can understand me and help me</p>