Closed tnguyen14 closed 9 years ago
Is there a way to find the first match in a collection/ array without iterating through the entire collection? I can currently use filter and then get the first element in the result array. However, this is not very fast for large collections.
filter
Not yet https://github.com/AmpersandJS/amp/pull/17
closing, as this will be resolved when we merge @wraithgar's PR
Is there a way to find the first match in a collection/ array without iterating through the entire collection? I can currently use
filter
and then get the first element in the result array. However, this is not very fast for large collections.