DEV Community

Discussion on: Stop Writing JavaScript Like This

Collapse
 
jamesthomson profile image
James Thomson

For #1, another option is to use find instead. That way it stops execution on the first found match.