daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Nov 14th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Console(target) {
  2.   console.log('Our decorated class', target);
  3. }
  4.    
  5. @Console
  6. class ExampleClass {
  7.   constructor() {
  8.     console.log('Yo!');
  9.   }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top