Skip to content

Instantly share code, notes, and snippets.

@mkuklis
Created February 8, 2013 21:43
Show Gist options
  • Save mkuklis/4742173 to your computer and use it in GitHub Desktop.
Save mkuklis/4742173 to your computer and use it in GitHub Desktop.
commonjs, amd, global
(function (root, factory) {
if (typeof exports === 'object') {
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
define(factory);
} else {
root.returnExports = factory();
}
}(this, function () {
return {};
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment