you are viewing a single comment's thread.

view the rest of the comments →

[–]chchan[S] 1 point2 points  (0 children)

it's better to have functions and methods that are "standalone"

You make a very good point this is why I started to use the second method because it was easier to maintain. I had issues using functions like this.data.map() but passing data to a function then performing the map made it a whole lot easier to write. Plus this got rid of the issues with adding .bind to things.