P0lip

Untitled

Mar 22nd, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function funcName() "wykop"; // funcName() zwraca strring wykop
  2. function funcName2() ({
  3.   get isThisWindow() this === window,
  4.   isThisWindow2: () => this === window,
  5.   get ["blabla"]() "computed names are supported toooooo"
  6. });
  7. let yep = funcName2();
  8. yep.isThisWindow; // false
  9. yep.isThisWindow2(); // true
  10. yep.blabla(); //"computed names are supported toooooo"
Advertisement
Add Comment
Please, Sign In to add comment