function(global factory)

JavaScript
// 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.*/

/*       });*/

Source

Also in JavaScript: