return not working inside forEach javascript
//return does not work inside forEach and map, and it keeps iterating // Use a normal for loop and your return would work
Source: stackoverflow.com
//return does not work inside forEach and map, and it keeps iterating // Use a normal for loop and your return would work