Guest User

Untitled

a guest
Jul 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. // Gzipping a string with vanilla JavaScript
  2. function gzip(input) {
  3. var blob = Utilities.newBlob(input);
  4. var gzipped = Utilities.gzip(blob);
  5. return Utilities.base64Encode(gzipped.getBytes());
  6. }
Add Comment
Please, Sign In to add comment