loading...

re: What is the decorator pattern? And how to implement it by JavaScript? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I like this! Looking at the code and not testing it - I'm wondering if you couldn't just do: const yellowStyle = (printer) => { const decora...
 

Thanks for sharing!
This way is a more general than my for action of decorate something, I will try to improve my code by this function you sharing.
By the way next I will learn about proxy pattern 😆

code of conduct - report abuse