title: Replace while loop with lodash
body: <p>I was trying to find a way in lodash to do this:</p>
  
  <pre><code>var start = 0;
  while (rows[start].substring(0, 1) === "#") {
    start++;
  }
  </code></pre>
  
  <p>The actual code is skipping all the top lines until it doesn't find a # at the beginning. I was hoping there was a bit nicer lodash method that I could do something like </p>
  
  <pre><code>var start = _.someMethod(function (str) {
    return str.substring(0, 1) === "#"
  })
  </code></pre>
  
  <p>So basically a lodash method to find the first index that does not match some query. Does that exist?</p>