Skip to content

Instantly share code, notes, and snippets.

@dionyziz
Last active April 19, 2020 20:14
Show Gist options
  • Save dionyziz/3febacdf1c61a54c15917cd40c85220b to your computer and use it in GitHub Desktop.
Save dionyziz/3febacdf1c61a54c15917cd40c85220b to your computer and use it in GitHub Desktop.
// v1
(w) => (function (w) { return "(w) => (" + w + ")" + "((function (w) { return \"" + w.replace(/\\/g, '\\\\').replace(/"/g, '\\\"') + "\" })(w))" })((function (w) { return "function (w) { return \"(w) => (\" + w + \")\" + \"((function (w) { return \\\"\" + w.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\\\"') + \"\\\" })(w))\" }" })(w))
// v2
(w) => ((w) => "(w) => (" + w + ")" + "(((w) => \"" + w.replace(/\\/g, '\\\\').replace(/"/g, '\\\"') + "\")(w))")(((w) => "(w) => \"(w) => (\" + w + \")\" + \"(((w) => \\\"\" + w.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\\\"') + \"\\\")(w))\"")(w))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment