brucemcpherson / desktopliberation

hosting for desktop liberation google plus community
30 stars 1 forks source link

JavaScript proxy, fiddling with Apps Script objects and custom errors #128

Open brucemcpherson opened 2 years ago

brucemcpherson commented 2 years ago

This article is a little more advanced than usual, and we’ll cover a number topics in one go. A JavaScript proxy gives us the ability to intercept JavaScript as it attempts to access the properties and executes the functions of an object.

It’s a perfect way to introduce the concept of a ‘default method’ or ‘default property’ into an object.

https://ramblings.mcpher.com/apps-script/proxies/