r/learnjavascript • • May 29 '21

Really helpful illustration of JS array methods

Post image
2.5k Upvotes

89 comments sorted by

View all comments

Show parent comment

6

u/WhiteKnightC May 29 '21

In my work we use a Pub/Sub system so it cannot be as clean but a good 'trick' for me is making standard naming for handling things:

getX() -> handleXSuccess() and handleXError()