Apps Script & Java Script

Apps Script V8: Keystore for global space

One of the challenges with V8 compared to Rhino is that you can’t be sure of the order of global variable initialization. Personally this is not an issue for me, as I avoid any such […]

Apps Script v8

Apps Script V8: Arraybuffers and Typed arrays

Apps Script V8 implements ArrayBuffers and Typed arrays from ES6. If you’ve used Apps Script Crypto Utilities or done any work with Blobs, then this is what’s going on behind the scenes, now exposed as […]

Apps Script v8

Apps Script V8: Maps and Sets

Apps Script V8 implements a couple of useful new ES6 structures – Maps and Sets. Here’s what they are and how to use them What are Maps and Sets These are a collection of like […]

Apps Script v8

Apps Script V8: Template literals

V8 adds template literals from  JavaScript ES6. What are template literals It’s a shorthand way of using a template into which variables are subsituted in a string. This allows for better reuse of string structures, […]

Apps Script v8

Apps Script V8: spreading and destructuring

V8 adds destructuring from  JavaScript ES6. Legacy Apps Script already had destructuring of arrays added fairly recently, but v8 gives full a destructuring capabilitity. What is destructuring It’s a way of plucking elements or property […]

Apps Script v8

JavaScript V8 Arrow functions, this and that

function declarations versus arrow functions V8 adds the arrow function declarator from modern JavaScript. This is a handy shorthand but it’s more than just that. There are some behavioral differences too that you’ll need to […]

Apps Script v8

JavaScript V8 variable scopes

var, const and let One of the key things that V8 has sorted out is the scope of variables. Using var to declare variables meant that anything declared within the scope of a function could […]

Apps Script

Apps Script v8

Apps script now supports JavaScript ES6 Apps Script now supports the same modern JavaScript you can use when writing for the browser. Up until now you had to write in a dialect of JavaScript based […]