In this video, we build a JavaScript decorator that will time how long a function takes to run.
Links:
– Exploring EcmaScript Decorators: https://medium.com/google-developers/exploring-es7-decorators-76ecb65fb841
– JSFiddle Code: https://jsfiddle.net/andrew8088/cfd5h39n/
Original source
Shyam Lohar
Dude this is neat best explanation of decorators on internet I'd say. 😍😍😍
Manas Tunga
great !!! Thanks a lot for making this video
Scott MacNevin
Thanks Andrew – really good intro to JS decorators..subscribe people!!
Wenyuan Jiao
So helpful and clear, thank you so much!
Dj Punisha /JoyRide recordings/
nice, need more of these JS gems 🙂
Daniel Ram
This was very helpful, thank you
JakeThe Corn
You are sharp man!
Blue Bot
thanks very clear and helpful!
IT
Best video about decorators I managed to find. Now I am able to create custom decorators )) Thank you very much
googleplussucks
When i try this on jsfiddle i get an error in the console saying ''You are using the in-browser Babel transformer. Be sure to precompile your scripts for production.'''
How on earth can i play with decorators online?
Daniel Stephany
Great video!!! I have been reading articles about decorators and have found it difficult to find a good example of how to build one. Your video was easy to follow and Helped a lot. Thanks!
Prabhas Joshi
why do we have to do descriptor.value.bind(target) – why cant we just do target[value]??
Jiří Filip
see ya later decorator
Muhammad Kashif
you are awesome bro. so you got a new subscriber 🙂
Prabha Karan
too fast 🙁
MrPlaiedes
Thanks Andrew! This is a great intro to decorators.