DEV Community

Discussion on: What is the decorator pattern? And how to implement it by JavaScript?

ms314006 profile image
Clark Author • Edited on

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 😆