Skip to content

Instantly share code, notes, and snippets.

@tail-call
Last active August 24, 2020 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tail-call/f8fa2052900c622a75a7014a7c5aac16 to your computer and use it in GitHub Desktop.
Save tail-call/f8fa2052900c622a75a7014a7c5aac16 to your computer and use it in GitHub Desktop.
Get base64 alphabet
export const base64Alphabet = new Array(64).fill(null).map((_, i) => btoa(String.fromCharCode(0, 0, i))[3]).join('');
@tail-call
Copy link
Author

Scarier version:

((c,d,e,f,g,h) => ((x,y,z,u,v,w,a,b) => w.call(v.call(z.call(new x(y), u), b), a))(h.constructor, 64, h.fill, null, h.map, h.join, '', (_, i) => c(d(e, f, i))[g], h.prototype))(btoa, String.fromCharCode, 0, 0, 3, Array.prototype)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment