title: Is there a way to filter an array with specific number of returned items in JS?
body: <p>For example, I only want to get two items that satisfy the filter condition.</p>
  <p>filter() then slice(2) will iterate all items which is really a waste while find() can only return one item.</p>
  <p>Is there any way to specify the number of returned items that satisfy the filter condition? except writing for loop by myself.</p>