docs: function namespace(path, scope) {
    assertType(path, 'string', true, 'Invalid parameter: path');
    assertType(scope, 'object', true, 'Invalid optional parameter: scope');
  
    if (!scope) scope = (window) ? window : {};
    if (path === undefined || path === '') return scope;
  
    let groups = path.split('.');
    let currentScope = scope;
  
    for (let i = 0; i < groups.length; i++) {
      currentScope = currentScope[groups[i]] || (currentScope[groups[i]] = {});
    }
  
    return currentScope;
  }