DEV Community

Discussion on: 5 Anti-Patterns to Avoid When Working With Collections in JavaScript

Collapse
 
vonheikemen profile image
Heiker

I see that one as lack of information. It doesn't matter if you pass the reference to the function or create it inline, the function signature is what is causing the problem. The solution is to search documentation about both function and make sure they are compatible.