Created
January 7, 2018 04:24
-
-
Save davidgilbertson/82e55dc09812d459bfdbe5ce1dbddff4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const i = 'gfudi'; | |
const k = s => s.split('').map(c => String.fromCharCode(c.charCodeAt() - 1)).join(''); | |
self[k(i)](urlWithYourPreciousData); |
self: https://developer.mozilla.org/en-US/docs/Web/API/Window/self
Accessing Object properties with []: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_Accessors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does anybody know a reference where I can read about self with [...] (self[...]) syntax?