title: Working equivalent for method .some() in javascript or jquery?
body: <p>Was looking for "equivalent for some method in javascript" and "return just one value if is in array", but saw only the answers to the way in which to determine the type of variables or too many unnecessary.</p>
  
  <p>I bypass all inputs in html and i want something like this:</p>
  
  <pre><code>$('#goodsFilter')
      .find('input[type="number"]')
      .some(function(i,el){
          return (isNumber($(el).val())) ? 1 : 0;
  });
  </code></pre>
  
  <p>But it throws an error: </p>
  
  <blockquote>
    <p>"TypeError: 'undefined' is not a function" (eg. Safari 6.0.4).</p>
  </blockquote>
  
  <p><br />
  <strong>UPD:</strong> Error comes from the last line, yeah, where <code>});</code>.
  isNumber:</p>
  
  <pre><code>function isNumber(n) { return !isNaN(parseFloat(n)) &amp;&amp; isFinite(n); }
  </code></pre>
  
  <p>This should check for the presence of each input information, and, if at least one of them is not empty, return 1, otherwise 0.
  How can I replace it to work in most modern browsers?</p>
  
  <p><strong>UPD:</strong>
  Problem was solved.  I'm a little confused in choosing the answer. The code of @RobG implementation of <code>.some()</code> is more understandable for beginners (and I am) so I switched my vote.</p>