You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sets results = []. It would type better without that. We can detect this by seeing that the loop always exits.
Related, I wonder if there should be a reducer for this, called for find or for first. It's similar to for some but returning the first item instead of a boolean.
The text was updated successfully, but these errors were encountered:
This seems like a useful construction, analogous to
Array.prototype.find
:The generated code
sets
results = []
. It would type better without that. We can detect this by seeing that the loop always exits.Related, I wonder if there should be a reducer for this, called
for find
orfor first
. It's similar tofor some
but returning the first item instead of a boolean.The text was updated successfully, but these errors were encountered: