function(global factory) code example
Example: function(global factory)
// Standard UMD format
/* |------------------| |------------------|
| v v |
| (function (global, factory) { |
| |
| |
| /* deleted for clarity */ /* |*/
/* | |---------------------------|
| |
| }(this, function () { 'use strict';
| |
|-------|
/* So, global is window scope (which exports the function as a variable),
and factory implements the module as a function.*/
/* });*/