code: function extend() {
        var defaults = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
        var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
  
        var extended = {};
        var prop = void 0;
  
        for (prop in defaults) {
          if (Object.prototype.hasOwnProperty.call(defaults, prop)) {
            extended[prop] = defaults[prop];
          }
        }
  
        for (prop in options) {
          if (Object.prototype.hasOwnProperty.call(options, prop)) {
            extended[prop] = options[prop];
          }
        }
  
        return extended;
      }
docs: /* Helper method (replace with shared function from library)