Great article!
AntSworD
11

Yeah, you’re correct. In that example, the function is only dispatched once, but the promise is used twice. So it’s optimal code, I just don’t think it’s very readable / maintainable.

Like what you read? Give Daniel Brain a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.