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
16 responses to “JavaScript Decorators: @time”
Dude this is neat best explanation of decorators on internet I'd say. ๐๐๐
great !!! Thanks a lot for making this video
Thanks Andrew – really good intro to JS decorators..subscribe people!!
So helpful and clear, thank you so much!
nice, need more of these JS gems ๐
This was very helpful, thank you
You are sharp man!
thanks very clear and helpful!
Best video about decorators I managed to find. Now I am able to create custom decorators )) Thank you very much
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?
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!
why do we have to do descriptor.value.bind(target) – why cant we just do target[value]??
see ya later decorator
you are awesome bro. so you got a new subscriber ๐
too fast ๐
Thanks Andrew! This is a great intro to decorators.