Skip to content

Instantly share code, notes, and snippets.

View brainysmurf's full-sized avatar

Adam Morris brainysmurf

View GitHub Profile
@brainysmurf
brainysmurf / Utgs.gs
Last active January 20, 2021 01:29
Utgs
/*
Imported via dev.gs
*/
(function (global, Factory) {
global.pkg = global.pkg || {};
global.pkg.utgs = (function wrapper (args) {
var wrapped = function () { return Factory.apply(Factory, [global].concat(Array.prototype.slice.call(arguments))); };
for (i in args) { wrapped[i] = args[i]; }
return wrapped;