DEV Community

Discussion on: How would you refactor this JS function?

Collapse
 
nombrekeff profile image
Keff

Ohh my bad. Thanks for pointing it out! I did not run the code after the refactor (big mistake when refactoring)

Thread Thread
 
rkallan profile image
RRKallan

haha can happen :)

Thread Thread
 
nombrekeff profile image
Keff

It definitely does, I've been away from javascript for a while, mostly working with dart/flutter...